Move the whole method into the else to fix the linux build.

This commit is contained in:
Marc Paine 2022-10-19 11:02:33 -07:00
parent 6f35aaa8e9
commit c6adb9e4b1

View file

@ -50,8 +50,7 @@ namespace EndToEnd
// https://github.com/NuGet/Home/issues/8571
#if LINUX_PORTABLE
return;
#endif
#else
var testProjectCreator = new TestProjectCreator()
{
PackageName = packageName,
@ -85,6 +84,7 @@ namespace EndToEnd
}
versionInAssertsJson.ToNormalizedString().Should().BeEquivalentTo(GetExpectedVersion(packageName, minorVersion));
#endif
}
private static NuGetVersion GetPackageVersion(LockFile lockFile, string packageName)