Repository navigation
Conversation
|
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 |
|
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. |
I don't understand your point. It's just that I want to make sure that we're not going to misuse |
|
😆 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.. |
|
Getting back to this PR, the way I interpret it is that it doesn't solve the problem unless people use And I don't see the "pin" this PR talks about. So can we just do what I suggested here so that people bumping the Fallout packages from 10.4 to 10.5 will get the fix automatically? |
|
Line 331-336 adds the pin with a descriptive comment |
Sure, if this works :) |
That's
Why the smiley? You don't think that will work? |
|
Hmm.. not sure. Because of the .netstandard2.0 "burden". Otherwise, everything netstandard2.0 related here makes no sense. |
dennisdoomen
left a comment
There was a problem hiding this comment.
Did some testing. After #677, the pin isn't necessary anymore. But we could still have this migration step to remove it when people upgrade to version 10.5 or higher. However, it needs to become a separate step. That RewriteCsprojsStep is already exploding.
|
ok.. should I also remove explicit pins for |
0750890 to
44beaee
Compare
Why would they break compilation? |
Hmm.. true, but still unnecessary though. Remove or leave alone? |
If people have been adding it to work around the .NET 10.0.400 issue, it might be nice to have |
|
So, not like now, but a v11 migration only? |
Yes, as the migration tool is only expected to be used to migrate from Nuke->Fallout or between major Fallout versions. |
NuGet.Framework for .NET SDK 10.0.400; auto-remove on future major versionsNuGet.* version pins on future major versions
dennisdoomen
left a comment
There was a problem hiding this comment.
🔧🤖 The PR description still describes inserting a delete-at-v11 marker block into _build.csproj, but the PR now only removes pins. Please rewrite it for the two removal steps and their version gating.
| /// </summary> | ||
| internal sealed class RemoveNugetFrameworkPinStep : IMigrationStep | ||
| { | ||
| private static readonly Regex explicitPinPattern = new( |
There was a problem hiding this comment.
I think when #694 is merged this should work out of the box, doesn't it?
Soli Deo Gloria
Soli Deo Gloria
This only runs for v11 or later Soli Deo Gloria
Soli Deo Gloria
Soli Deo Gloria
a7f2c17 to
963b769
Compare
Soli Deo Gloria
Soli Deo Gloria
Removes obsolete explicit NuGet package pins from project files during migration.
What changed
NuGet.Frameworksreferences from every*.csprojfile.NuGet.Protocol,NuGet.Packaging, andNuGet.Resolverreferences.Why
Fallout now aligns its NuGet dependencies with the versions loaded by the .NET SDK. Explicit project-level pins are no longer needed and can cause version conflicts. The related NuGet pins remain in place for Fallout 10.x and are removed when migrating to Fallout 11 or later.
Addresses #638 (the NuGet package workaround). Follow-up to #677 (the SDK NuGet version alignment).