File tree Expand file tree Collapse file tree
test/NuGet.Core.FuncTests/Dotnet.Integration.Test Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments