Uh oh!
There was an error while loading. Please reload this page.
Pin NuGet.Framework for .NET SDK 10.0.400; auto-remove on future major versions - #666
Pin NuGet.Framework for .NET SDK 10.0.400; auto-remove on future major versions#666ITaluone wants to merge 2 commits into
NuGet.Framework for .NET SDK 10.0.400; auto-remove on future major versions#666Conversation
- Do not Add pin to net framework build projects - Only add on build projects in general
dennisdoomen
commented
Aug 30, 2026
I'm going to park this one until we have settled on a path in #638. Also, upgrades between 10.x must always be backwards compatible and |
IT-VBFK
commented
Aug 30, 2026
Ok.. but why this shouldn't be backwards compatible? The one and only reason for this is to stay without breaking changes (or in other words: be prepared for .NET 10.0.400 SDK upgrade in consumer projects) I did this for two projects to be able to move forward to 10.0.400. |
dennisdoomen
commented
Aug 31, 2026
I don't understand your point. It's just that I want to make sure that we're not going to misuse |
IT-VBFK
commented
Aug 31, 2026
😆 Ok.. I don't get it either, because it is no breaking change in the v10 stream, but a potential breaking change (which this could prevent) in the consumer's repos when upgrading to 10.0.400.. |
fallout-migratenow pinsNuGet.Framework7.9.0 on 10.x build projects, and removes that pin when the target Fallout major matches or moves beyond the marker.I chose the marker version v11 because of various comments mentioning this version upgrade in that major version.
If someone feels to leave it until v12, please ping me on that one.
Changes
RewriteCsprojsStepinserts this block into the firstItemGroupof only the_build.csproj:v11in the marker is the next major afterMigrationContext.FalloutVersion(the versionfallout-migrateresolved for this run).:startthrough:end.Why?
.NET SDK 10.0.400 loads
NuGet.Frameworks7.9.0.0 while evaluating the build project. Without an explicit pin, MSBuild fails when calling e.g.Solution.MyProject.GetTargetFrameworks(). The pin is only needed on the 10.x line. The marker tellsfallout-migrateto drop the block on v11 so consumers do not have to edit the csproj by hand.Proposed workaround migration for #638