Skip to content

Commit 3f5eb66

Browse files
committed
Use correct MSBuild
1 parent dea79fe commit 3f5eb66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public class DotnetIntegrationTestFixture : IDisposable
4646

4747
public DotnetIntegrationTestFixture()
4848
{
49-
MSBuildLocator.RegisterDefaults();
50-
5149
string testAssemblyPath = Path.GetFullPath(Assembly.GetExecutingAssembly().Location);
5250
_cliDirectory = TestDotnetCLiUtility.CopyAndPatchLatestDotnetCli(testAssemblyPath);
5351
var dotnetExecutableName = RuntimeEnvironmentHelper.IsWindows ? "dotnet.exe" : "dotnet";
@@ -59,6 +57,8 @@ public DotnetIntegrationTestFixture()
5957
SdkDirectory = new DirectoryInfo(sdkPath);
6058
MsBuildSdksPath = Path.Combine(sdkPath, "Sdks");
6159

60+
MSBuildLocator.RegisterMSBuildPath(sdkPath);
61+
6262
_templateDirectory = new SimpleTestPathContext();
6363
TestDotnetCLiUtility.WriteGlobalJson(_templateDirectory.WorkingDirectory);
6464

0 commit comments

Comments
 (0)