Align target frameworks

This commit is contained in:
Alexander Luzgarev 2018-12-08 10:32:17 +01:00
parent 5eb63a00e0
commit a55a5bd575
5 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Parser\Parser.csproj" />

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>

View File

@ -72,12 +72,12 @@ namespace Semantics
private string GetPackageNameFromFolder(string folderName)
{
return folderName.StartsWith('+') ? folderName.Substring(1, folderName.Length - 1) : null;
return folderName[0] == '+' ? folderName.Substring(1, folderName.Length - 1) : null;
}
private string GetClassNameFromFolder(string folderName)
{
return folderName.StartsWith('@') ? folderName.Substring(1, folderName.Length - 1) : null;
return folderName[0] == '@' ? folderName.Substring(1, folderName.Length - 1) : null;
}
private void ScanPrivateDirectory(ClassContext currentContext, string directory)

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Parser\Parser.csproj" />

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<None Update="input.xml">