Skip to content

Commit 2c3408b

Browse files
authored
[automated] Merge branch 'release/7.0.2xx' => 'main' (#29940)
2 parents ee5bbf7 + ab4af65 commit 2c3408b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build/RunTestsOnHelix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ cp -a $HELIX_CORRELATION_PAYLOAD/t/TestExecutionDirectoryFiles/. $TestExecutionD
1717
# call dotnet new so the first run message doesn't interfere with the first test
1818
dotnet new --debug:ephemeral-hive
1919
# We downloaded a special zip of files to the .nuget folder so add that as a source
20+
dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config
2021
dotnet nuget add source $DOTNET_ROOT/.nuget --configfile $TestExecutionDirectory/nuget.config
2122
dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config
2223
dotnet nuget remove source dotnet6-transport --configfile $TestExecutionDirectory/nuget.config

src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ public void TestProjectCanReferenceExe(string testTemplateName)
317317
var testProjectDirectory = Path.Combine(testAsset.TestRoot, "TestProject");
318318
Directory.CreateDirectory(testProjectDirectory);
319319

320-
new DotnetCommand(Log, "new", testTemplateName, "--debug:ephemeral-hive")
320+
new DotnetNewCommand(Log, testTemplateName)
321+
.WithVirtualHive()
321322
.WithWorkingDirectory(testProjectDirectory)
322323
.Execute()
323324
.Should()
@@ -353,7 +354,8 @@ public void ExeProjectCanReferenceTestProject(string testTemplateName)
353354
var testProjectDirectory = Path.Combine(testAsset.TestRoot, "TestProject");
354355
Directory.CreateDirectory(testProjectDirectory);
355356

356-
new DotnetCommand(Log, "new", testTemplateName, "--debug:ephemeral-hive")
357+
new DotnetNewCommand(Log, testTemplateName)
358+
.WithVirtualHive()
357359
.WithWorkingDirectory(testProjectDirectory)
358360
.Execute()
359361
.Should()

0 commit comments

Comments
 (0)