-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
The regressions fixed by #11488 would ideally have been caught by this test
msbuild/src/Build.OM.UnitTests/NugetRestoreTests.cs
Lines 24 to 52 in 36b265d
| public void TestOldNuget() | |
| { | |
| string msbuildExePath = Path.GetDirectoryName(RunnerUtilities.PathToCurrentlyRunningMsBuildExe)!; | |
| using TestEnvironment testEnvironment = TestEnvironment.Create(); | |
| TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); | |
| // The content of the solution isn't known to matter, but having a custom solution makes it easier to add requirements should they become evident. | |
| TransientTestFile sln = testEnvironment.CreateFile(folder, "test.sln", | |
| @" | |
| Microsoft Visual Studio Solution File, Format Version 12.00 | |
| \# Visual Studio 15 | |
| VisualStudioVersion = 15.0.26124.0 | |
| MinimumVisualStudioVersion = 15.0.26124.0 | |
| Global | |
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
| Debug|Any CPU = Debug|Any CPU | |
| Debug|x64 = Debug|x64 | |
| Debug|x86 = Debug|x86 | |
| Release|Any CPU = Release|Any CPU | |
| Release|x64 = Release|x64 | |
| Release|x86 = Release|x86 | |
| EndGlobalSection | |
| GlobalSection(SolutionProperties) = preSolution | |
| HideSolutionNode = FALSE | |
| EndGlobalSection | |
| EndGlobal | |
| "); | |
| RunnerUtilities.RunProcessAndGetOutput(Path.Combine(msbuildExePath, "nuget", "NuGet.exe"), "restore " + sln.Path + " -MSBuildPath \"" + msbuildExePath + "\"", out bool success, outputHelper: _output); | |
| success.ShouldBeTrue(); | |
| } |
But weren't. Why?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels