Problem
global.json pins SDK 10.0.100 with rollForward: latestMinor, so CI now runs SDK 10.0.400. That SDK loads NuGet.Frameworks 7.9.0.0 into MSBuild. Directory.Packages.props:21 pins NuGet.Packaging 6.14.3, which loads NuGet.Frameworks 6.14.3 into the same process. Every ./build.sh run fails at Compile, so CI fails on main and on every PR.
Outcome
./build.sh Compile succeeds on SDK 10.0.400, and the required ubuntu-latest check passes again.
Acceptance criteria
Notes
Nothing in the repository changed. The last green run used SDK 10.0.302. The first failing run used 10.0.400.
Error: InvalidProjectFileException: The expression "[MSBuild]::GetTargetFrameworkIdentifier(net10.0)" cannot be evaluated. Could not load file or assembly 'NuGet.Frameworks, Version=7.9.0.0'.
NuGet 7.0 only removed APIs that were already marked obsolete. This repo uses NuspecReader, PackageArchiveReader, PackageFolderReader, VersionRange, NuGetVersion and NuGetFramework. None of them are affected. Bumping to 7.9.0 was tested locally and compiles with 0 errors.
Open questions
- NuGet 7.x dropped
netstandard2.0 support. Fallout.Tooling (net10.0;netstandard2.0) and Fallout.Tooling.Generator (netstandard2.0) then restore .NET Framework assets instead, which produces 35 NU1701 warnings. Do those netstandard2.0 targets still need to exist?
- Pinning 6.14.3 for only the
netstandard2.0 target does not work while CentralPackageTransitivePinningEnabled is true (Directory.Packages.props:4).
Problem
global.jsonpins SDK10.0.100withrollForward: latestMinor, so CI now runs SDK 10.0.400. That SDK loadsNuGet.Frameworks 7.9.0.0into MSBuild.Directory.Packages.props:21pinsNuGet.Packaging 6.14.3, which loadsNuGet.Frameworks 6.14.3into the same process. Every./build.shrun fails atCompile, so CI fails onmainand on every PR.Outcome
./build.sh Compilesucceeds on SDK 10.0.400, and the requiredubuntu-latestcheck passes again.Acceptance criteria
NuGet.Packagingis bumped to a 7.x version matching the NuGet version shipped by the supported SDK range../build.sh Compileand./build.sh Testpass locally on SDK 10.0.400.ubuntu-latestis green onmain.Notes
Nothing in the repository changed. The last green run used SDK 10.0.302. The first failing run used 10.0.400.
Error:
InvalidProjectFileException: The expression "[MSBuild]::GetTargetFrameworkIdentifier(net10.0)" cannot be evaluated. Could not load file or assembly 'NuGet.Frameworks, Version=7.9.0.0'.NuGet 7.0 only removed APIs that were already marked obsolete. This repo uses
NuspecReader,PackageArchiveReader,PackageFolderReader,VersionRange,NuGetVersionandNuGetFramework. None of them are affected. Bumping to 7.9.0 was tested locally and compiles with 0 errors.Open questions
netstandard2.0support.Fallout.Tooling(net10.0;netstandard2.0) andFallout.Tooling.Generator(netstandard2.0) then restore .NET Framework assets instead, which produces 35 NU1701 warnings. Do thosenetstandard2.0targets still need to exist?netstandard2.0target does not work whileCentralPackageTransitivePinningEnabledistrue(Directory.Packages.props:4).