diff --git a/build/Microsoft.DotNet.Cli.Compile.targets b/build/Microsoft.DotNet.Cli.Compile.targets index 550a2dce0..b32926ce2 100644 --- a/build/Microsoft.DotNet.Cli.Compile.targets +++ b/build/Microsoft.DotNet.Cli.Compile.targets @@ -5,14 +5,14 @@ runtimes/any/native - $(RepoRoot)/resources/MSBuildImports + $(RepoRoot)/resources/MSBuildImports - + - diff --git a/build/Microsoft.DotNet.Cli.Test.targets b/build/Microsoft.DotNet.Cli.Test.targets index 5af75753d..d561164ab 100644 --- a/build/Microsoft.DotNet.Cli.Test.targets +++ b/build/Microsoft.DotNet.Cli.Test.targets @@ -10,7 +10,7 @@ - @@ -27,13 +27,28 @@ - + + @(TestTaskEnvironmentVariables) + + + + + + CLIBuildDll=$(CLIBuildDll); + Configuration=$(Configuration); + EnvironmentVariables=$(RunTestEnvironmentVariables); + TestProjectName=%(TestProjects.OutputName); + TestResultXmlDir=$(TestResultXmlDir); + ToolPath=$(Stage2Directory); + WorkingDirectory=%(TestProjects.ProjectDir) + + + + + + - - - - + @@ -122,7 +137,7 @@ Outputs="@(RestoreTestAssetProjectsInputs->'%(RelativeDir)/project.lock.json')"> @@ -136,23 +151,23 @@ - + - + - - @@ -167,14 +182,14 @@ @@ -184,7 +199,7 @@ - - - - diff --git a/run-build.ps1 b/run-build.ps1 index 55fb02d9c..b2c3f4b8f 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -71,10 +71,10 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 if ($NoBuild) { Write-Host "Not building due to --nobuild" - Write-Host "Command that would be run: 'dotnet build3 build.proj /p:Architecture=$Architecture $ExtraParameters'" + Write-Host "Command that would be run: 'dotnet build3 build.proj /m /p:Architecture=$Architecture $ExtraParameters'" } else { - dotnet build3 build.proj /p:Architecture=$Architecture $ExtraParameters + dotnet build3 build.proj /m /p:Architecture=$Architecture $ExtraParameters if($LASTEXITCODE -ne 0) { throw "Failed to build" } } diff --git a/run-build.sh b/run-build.sh index df4282efe..56823c636 100755 --- a/run-build.sh +++ b/run-build.sh @@ -117,8 +117,8 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 echo "${args[@]}" if [ $BUILD -eq 1 ]; then - dotnet build3 build.proj /p:Architecture=$ARCHITECTURE "${args[@]}" + dotnet build3 build.proj /m /p:Architecture=$ARCHITECTURE "${args[@]}" else echo "Not building due to --nobuild" - echo "Command that would be run is: 'dotnet build3 build.proj /p:Architecture=$ARCHITECTURE ${args[@]}'" + echo "Command that would be run is: 'dotnet build3 build.proj /m /p:Architecture=$ARCHITECTURE ${args[@]}'" fi