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..af29cd473 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/build/test/RunTest.proj b/build/test/RunTest.proj new file mode 100644 index 000000000..b3faca530 --- /dev/null +++ b/build/test/RunTest.proj @@ -0,0 +1,21 @@ + + + + + + $([MSBuild]::Unescape($(CLIBuildDll))) + + + + + + + + + \ No newline at end of file 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 diff --git a/src/dotnet/commands/dotnet-new/CSharp_xunittest/project.json.template b/src/dotnet/commands/dotnet-new/CSharp_xunittest/project.json.template index 888835ba0..6b9d82e88 100644 --- a/src/dotnet/commands/dotnet-new/CSharp_xunittest/project.json.template +++ b/src/dotnet/commands/dotnet-new/CSharp_xunittest/project.json.template @@ -6,7 +6,7 @@ "dependencies": { "System.Runtime.Serialization.Primitives": "4.1.1", "xunit": "2.1.0", - "dotnet-test-xunit": "1.0.0-rc2-192208-24", + "dotnet-test-xunit": "1.0.0-rc2-330423-54", "Microsoft.DotNet.InternalAbstractions": "1.0.0" }, "testRunner": "xunit", diff --git a/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs b/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs index 4faf110c1..6137f1953 100644 --- a/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs +++ b/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs @@ -31,14 +31,15 @@ namespace Microsoft.DotNet.Tests _firstDotnetNonVerbUseCommandResult = command.ExecuteWithCapturedOutput("--info"); _firstDotnetVerbUseCommandResult = command.ExecuteWithCapturedOutput("new"); - _nugetCacheFolder = new DirectoryInfo(testNugetCache); } [Fact] public void Using_dotnet_for_the_first_time_succeeds() { - _firstDotnetVerbUseCommandResult.Should().Pass(); + _firstDotnetVerbUseCommandResult + .Should() + .Pass(); } [Fact] @@ -46,7 +47,9 @@ namespace Microsoft.DotNet.Tests { const string firstTimeNonVerbUseMessage = @".NET Command Line Tools"; - _firstDotnetNonVerbUseCommandResult.StdOut.Should().StartWith(firstTimeNonVerbUseMessage); + _firstDotnetNonVerbUseCommandResult.StdOut + .Should() + .StartWith(firstTimeNonVerbUseMessage); } [Fact] @@ -64,19 +67,25 @@ Configuring... ------------------- A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once."; - _firstDotnetVerbUseCommandResult.StdOut.Should().StartWith(firstTimeUseWelcomeMessage); + _firstDotnetVerbUseCommandResult.StdOut + .Should() + .StartWith(firstTimeUseWelcomeMessage); } [Fact] public void It_restores_the_nuget_packages_to_the_nuget_cache_folder() { - _nugetCacheFolder.Should().HaveFile($"{GetDotnetVersion()}.dotnetSentinel"); + _nugetCacheFolder + .Should() + .HaveFile($"{GetDotnetVersion()}.dotnetSentinel"); } [Fact] public void It_creates_a_sentinel_file_under_the_nuget_cache_folder() { - _nugetCacheFolder.Should().HaveDirectory("microsoft.netcore.app"); + _nugetCacheFolder + .Should() + .HaveDirectory("microsoft.netcore.app"); } private string GetDotnetVersion()