From 7acf77bcc76d4e15ca005505fde137e3ff49f7c2 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sun, 3 Mar 2019 15:02:49 +0300 Subject: [PATCH] Fixed Linux build and runtime https://github.com/pascalabcnet/pascalabcnet/issues/1812 --- NETGenerator/NETGenerator.csproj | 6 +++--- ParserTools/ParserTools.csproj | 6 +++--- _RebuildReleaseAndRunTests.sh | 4 ++-- bin/pabcnetc | 0 pabcnetc/ConsoleCompiler.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 bin/pabcnetc diff --git a/NETGenerator/NETGenerator.csproj b/NETGenerator/NETGenerator.csproj index 2a9f6282e..3fdab4696 100644 --- a/NETGenerator/NETGenerator.csproj +++ b/NETGenerator/NETGenerator.csproj @@ -130,8 +130,8 @@ - - Config\globalassemblyinfo.cs + + Config\GlobalAssemblyInfo.cs @@ -169,4 +169,4 @@ - \ No newline at end of file + diff --git a/ParserTools/ParserTools.csproj b/ParserTools/ParserTools.csproj index 63b9a9425..451eaf45c 100644 --- a/ParserTools/ParserTools.csproj +++ b/ParserTools/ParserTools.csproj @@ -71,7 +71,7 @@ - + @@ -115,11 +115,11 @@ - - \ No newline at end of file + diff --git a/_RebuildReleaseAndRunTests.sh b/_RebuildReleaseAndRunTests.sh index 106790ecb..9095e86a4 100644 --- a/_RebuildReleaseAndRunTests.sh +++ b/_RebuildReleaseAndRunTests.sh @@ -1,6 +1,6 @@ #!/bin/sh -MONO_IOMAP=case xbuild /p:Configuration=release pabcnetc.sln -MONO_IOMAP=case xbuild /p:Configuration=release CodeCompletion/CodeCompletion.csproj +MONO_IOMAP=case msbuild /p:Configuration=release pabcnetc.sln +MONO_IOMAP=case msbuild /p:Configuration=release CodeCompletion/CodeCompletion.csproj mono --aot bin/pabcnetc.exe mono --aot bin/NETGenerator.dll mono --aot bin/TreeConverter.dll diff --git a/bin/pabcnetc b/bin/pabcnetc old mode 100644 new mode 100755 diff --git a/pabcnetc/ConsoleCompiler.cs b/pabcnetc/ConsoleCompiler.cs index ea8145b60..8c3e6cdd0 100644 --- a/pabcnetc/ConsoleCompiler.cs +++ b/pabcnetc/ConsoleCompiler.cs @@ -47,7 +47,7 @@ namespace PascalABCCompiler { System.Text.StringBuilder sb = new System.Text.StringBuilder(); Console.ForegroundColor = ConsoleColor.Gray; - if (command == "") return false; + if (command == "" || command == null) return false; if (command.ToLower().IndexOf("cd ") == 0) { try