@@ -413,7 +413,7 @@ public void TestDefaultCSharpAutoBuilder()
413413 actions . RunProcess [ "cmd.exe /C dotnet --info" ] = 0 ;
414414 actions . RunProcess [ @"cmd.exe /C dotnet clean C:\Project\test.csproj" ] = 0 ;
415415 actions . RunProcess [ @"cmd.exe /C dotnet restore C:\Project\test.csproj" ] = 0 ;
416- actions . RunProcess [ @"cmd.exe /C dotnet build --no-incremental /p:UseSharedCompilation=false C:\Project\test.csproj" ] = 0 ;
416+ actions . RunProcess [ @"cmd.exe /C dotnet build --no-incremental C:\Project\test.csproj" ] = 0 ;
417417 actions . FileExists [ "csharp.log" ] = true ;
418418 actions . FileExists [ @"C:\Project\test.csproj" ] = true ;
419419 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -440,7 +440,7 @@ public void TestLinuxCSharpAutoBuilder()
440440 actions . RunProcess [ "dotnet --info" ] = 0 ;
441441 actions . RunProcess [ @"dotnet clean C:\Project/test.csproj" ] = 0 ;
442442 actions . RunProcess [ @"dotnet restore C:\Project/test.csproj" ] = 0 ;
443- actions . RunProcess [ @"dotnet build --no-incremental /p:UseSharedCompilation=false C:\Project/test.csproj" ] = 0 ;
443+ actions . RunProcess [ @"dotnet build --no-incremental C:\Project/test.csproj" ] = 0 ;
444444 actions . FileExists [ "csharp.log" ] = true ;
445445 actions . FileExists [ @"C:\Project/test.csproj" ] = true ;
446446 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -715,9 +715,9 @@ public void TestWindowsCmdIgnoreErrors()
715715 public void TestWindowCSharpMsBuild ( )
716716 {
717717 actions . RunProcess [ @"cmd.exe /C C:\Project\.nuget\nuget.exe restore C:\Project\test1.sln -DisableParallelProcessing" ] = 0 ;
718- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
718+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
719719 actions . RunProcess [ @"cmd.exe /C C:\Project\.nuget\nuget.exe restore C:\Project\test2.sln -DisableParallelProcessing" ] = 0 ;
720- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.sln /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
720+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.sln /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
721721 actions . FileExists [ "csharp.log" ] = true ;
722722 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" ] = false ;
723723 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ] = false ;
@@ -746,9 +746,9 @@ public void TestWindowCSharpMsBuild()
746746 public void TestWindowCSharpMsBuildMultipleSolutions ( )
747747 {
748748 actions . RunProcess [ @"cmd.exe /C nuget restore C:\Project\test1.csproj -DisableParallelProcessing" ] = 0 ;
749- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.csproj /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
749+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.csproj /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
750750 actions . RunProcess [ @"cmd.exe /C nuget restore C:\Project\test2.csproj -DisableParallelProcessing" ] = 0 ;
751- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.csproj /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
751+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.csproj /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
752752 actions . FileExists [ "csharp.log" ] = true ;
753753 actions . FileExists [ @"C:\Project\test1.csproj" ] = true ;
754754 actions . FileExists [ @"C:\Project\test2.csproj" ] = true ;
@@ -791,7 +791,7 @@ public void TestWindowCSharpMsBuildMultipleSolutions()
791791 public void TestWindowCSharpMsBuildFailed ( )
792792 {
793793 actions . RunProcess [ @"cmd.exe /C nuget restore C:\Project\test1.sln -DisableParallelProcessing" ] = 0 ;
794- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 1 ;
794+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 1 ;
795795 actions . FileExists [ "csharp.log" ] = true ;
796796 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" ] = false ;
797797 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ] = false ;
@@ -817,8 +817,8 @@ public void TestWindowCSharpMsBuildFailed()
817817 [ Fact ]
818818 public void TestSkipNugetMsBuild ( )
819819 {
820- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
821- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.sln /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
820+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test1.sln /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
821+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ test2.sln /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
822822 actions . FileExists [ "csharp.log" ] = true ;
823823 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" ] = false ;
824824 actions . FileExists [ @"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ] = false ;
@@ -862,7 +862,7 @@ public void TestSkipNugetDotnet()
862862 actions . RunProcess [ "dotnet --info" ] = 0 ;
863863 actions . RunProcess [ @"dotnet clean C:\Project/test.csproj" ] = 0 ;
864864 actions . RunProcess [ @"dotnet restore C:\Project/test.csproj" ] = 0 ;
865- actions . RunProcess [ @"dotnet build --no-incremental /p:UseSharedCompilation=false --no-restore C:\Project/test.csproj" ] = 0 ;
865+ actions . RunProcess [ @"dotnet build --no-incremental --no-restore C:\Project/test.csproj" ] = 0 ;
866866 actions . FileExists [ "csharp.log" ] = true ;
867867 actions . FileExists [ @"C:\Project/test.csproj" ] = true ;
868868 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -894,7 +894,7 @@ public void TestDotnetVersionNotInstalled()
894894 actions . RunProcess [ @"C:\Project/.dotnet/dotnet --info" ] = 0 ;
895895 actions . RunProcess [ @"C:\Project/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
896896 actions . RunProcess [ @"C:\Project/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
897- actions . RunProcess [ @"C:\Project/.dotnet/dotnet build --no-incremental /p:UseSharedCompilation=false C:\Project/test.csproj" ] = 0 ;
897+ actions . RunProcess [ @"C:\Project/.dotnet/dotnet build --no-incremental C:\Project/test.csproj" ] = 0 ;
898898 actions . FileExists [ "csharp.log" ] = true ;
899899 actions . FileExists [ "test.csproj" ] = true ;
900900 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -929,7 +929,7 @@ public void TestDotnetVersionAlreadyInstalled()
929929 actions . RunProcess [ @"C:\Project/.dotnet/dotnet --info" ] = 0 ;
930930 actions . RunProcess [ @"C:\Project/.dotnet/dotnet clean C:\Project/test.csproj" ] = 0 ;
931931 actions . RunProcess [ @"C:\Project/.dotnet/dotnet restore C:\Project/test.csproj" ] = 0 ;
932- actions . RunProcess [ @"C:\Project/.dotnet/dotnet build --no-incremental /p:UseSharedCompilation=false C:\Project/test.csproj" ] = 0 ;
932+ actions . RunProcess [ @"C:\Project/.dotnet/dotnet build --no-incremental C:\Project/test.csproj" ] = 0 ;
933933 actions . FileExists [ "csharp.log" ] = true ;
934934 actions . FileExists [ "test.csproj" ] = true ;
935935 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -960,7 +960,7 @@ private void TestDotnetVersionWindows(Action action, int commandsRun)
960960 actions . RunProcess [ @"cmd.exe /C C:\Project\.dotnet\dotnet --info" ] = 0 ;
961961 actions . RunProcess [ @"cmd.exe /C C:\Project\.dotnet\dotnet clean C:\Project\test.csproj" ] = 0 ;
962962 actions . RunProcess [ @"cmd.exe /C C:\Project\.dotnet\dotnet restore C:\Project\test.csproj" ] = 0 ;
963- actions . RunProcess [ @"cmd.exe /C C:\Project\.dotnet\dotnet build --no-incremental /p:UseSharedCompilation=false C:\Project\test.csproj" ] = 0 ;
963+ actions . RunProcess [ @"cmd.exe /C C:\Project\.dotnet\dotnet build --no-incremental C:\Project\test.csproj" ] = 0 ;
964964 actions . FileExists [ "csharp.log" ] = true ;
965965 actions . FileExists [ @"C:\Project\test.csproj" ] = true ;
966966 actions . GetEnvironmentVariable [ "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR" ] = "" ;
@@ -1008,7 +1008,7 @@ public void TestDirsProjWindows()
10081008 {
10091009 actions . RunProcess [ @"cmd.exe /C nuget restore C:\Project\dirs.proj -DisableParallelProcessing" ] = 1 ;
10101010 actions . RunProcess [ @"cmd.exe /C C:\Project\.nuget\nuget.exe restore C:\Project\dirs.proj -DisableParallelProcessing" ] = 0 ;
1011- actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ dirs.proj /p:UseSharedCompilation=false / t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /p:MvcBuildViews=true /P:Fu=Bar" ] = 0 ;
1011+ actions . RunProcess [ "cmd.exe /C CALL ^\" C:\\ Program Files ^(x86^)\\ Microsoft Visual Studio 12.0\\ VC\\ vcvarsall.bat^\" && set Platform=&& type NUL && msbuild C:\\ Project\\ dirs.proj /t:Windows /p:Platform=\" x86\" /p:Configuration=\" Debug\" /P:Fu=Bar" ] = 0 ;
10121012 actions . FileExists [ "csharp.log" ] = true ;
10131013 actions . FileExists [ @"C:\Project\a\test.csproj" ] = true ;
10141014 actions . FileExists [ @"C:\Project\dirs.proj" ] = true ;
@@ -1052,7 +1052,7 @@ public void TestDirsProjLinux()
10521052 {
10531053 actions . RunProcess [ @"nuget restore C:\Project/dirs.proj -DisableParallelProcessing" ] = 1 ;
10541054 actions . RunProcess [ @"mono C:\Project/.nuget/nuget.exe restore C:\Project/dirs.proj -DisableParallelProcessing" ] = 0 ;
1055- actions . RunProcess [ @"msbuild C:\Project/dirs.proj /p:UseSharedCompilation=false / t:rebuild /p:MvcBuildViews=true " ] = 0 ;
1055+ actions . RunProcess [ @"msbuild C:\Project/dirs.proj /t:rebuild" ] = 0 ;
10561056 actions . FileExists [ "csharp.log" ] = true ;
10571057 actions . FileExists [ @"C:\Project/a/test.csproj" ] = true ;
10581058 actions . FileExists [ @"C:\Project/dirs.proj" ] = true ;
0 commit comments