diff --git a/ConsoleDemo/ConsoleDemo.csproj b/ConsoleDemo/ConsoleDemo.csproj index 8e56b75..1346ca7 100644 --- a/ConsoleDemo/ConsoleDemo.csproj +++ b/ConsoleDemo/ConsoleDemo.csproj @@ -1,7 +1,7 @@  Exe - netcoreapp2.1 + netcoreapp3.0 diff --git a/Parser.Tests/Parser.Tests.csproj b/Parser.Tests/Parser.Tests.csproj index 0dcbb0e..9f96ade 100644 --- a/Parser.Tests/Parser.Tests.csproj +++ b/Parser.Tests/Parser.Tests.csproj @@ -1,6 +1,6 @@  - netcoreapp2.1 + netcoreapp3.0 false diff --git a/Semantics/Context.cs b/Semantics/Context.cs index f51a122..a1c1449 100644 --- a/Semantics/Context.cs +++ b/Semantics/Context.cs @@ -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) diff --git a/Semantics/Semantics.csproj b/Semantics/Semantics.csproj index 8d3ba26..11924a6 100644 --- a/Semantics/Semantics.csproj +++ b/Semantics/Semantics.csproj @@ -1,6 +1,6 @@  - netcoreapp2.1 + netstandard2.0 diff --git a/SyntaxGenerator/SyntaxGenerator.csproj b/SyntaxGenerator/SyntaxGenerator.csproj index 4658176..5b8db53 100644 --- a/SyntaxGenerator/SyntaxGenerator.csproj +++ b/SyntaxGenerator/SyntaxGenerator.csproj @@ -1,7 +1,7 @@  Exe - netcoreapp2.0 + netcoreapp3.0