diff --git a/build/RunTestsOnHelix.sh b/build/RunTestsOnHelix.sh index 45a50782a24c..1614333b1201 100644 --- a/build/RunTestsOnHelix.sh +++ b/build/RunTestsOnHelix.sh @@ -17,6 +17,7 @@ cp -a $HELIX_CORRELATION_PAYLOAD/t/TestExecutionDirectoryFiles/. $TestExecutionD # call dotnet new so the first run message doesn't interfere with the first test dotnet new --debug:ephemeral-hive # We downloaded a special zip of files to the .nuget folder so add that as a source +dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config dotnet nuget add source $DOTNET_ROOT/.nuget --configfile $TestExecutionDirectory/nuget.config dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config dotnet nuget remove source dotnet6-transport --configfile $TestExecutionDirectory/nuget.config diff --git a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs index 4a87c906b614..79031d63a8f1 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs @@ -317,7 +317,8 @@ public void TestProjectCanReferenceExe(string testTemplateName) var testProjectDirectory = Path.Combine(testAsset.TestRoot, "TestProject"); Directory.CreateDirectory(testProjectDirectory); - new DotnetCommand(Log, "new", testTemplateName, "--debug:ephemeral-hive") + new DotnetNewCommand(Log, testTemplateName) + .WithVirtualHive() .WithWorkingDirectory(testProjectDirectory) .Execute() .Should() @@ -353,7 +354,8 @@ public void ExeProjectCanReferenceTestProject(string testTemplateName) var testProjectDirectory = Path.Combine(testAsset.TestRoot, "TestProject"); Directory.CreateDirectory(testProjectDirectory); - new DotnetCommand(Log, "new", testTemplateName, "--debug:ephemeral-hive") + new DotnetNewCommand(Log, testTemplateName) + .WithVirtualHive() .WithWorkingDirectory(testProjectDirectory) .Execute() .Should()