Upgrade GitHub Source Link for an opted-in .NET 10 SDK build
ProprietaryUpgrades existing Microsoft.SourceLink.GitHub references to 10.0.403 for SDK-style libraries built with the .NET 10 SDK, including Framework and netstandard targets. Requires explicit confirmation of the build host. Leaves the captured build unchanged when it contains classic projects or unreviewed/incompatible direct task dependency pins. Preserves reference metadata and delegates version/property/central handling and restore to UpgradeNuGetPackageVersion. Does not remove Source Link or change target frameworks.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeGitHubSourceLinkForSdk10Required
Set true only after verifying that every affected build uses the .NET 10 SDK (dotnet MSBuild), including CI and packaging. Application TFMs do not prove this.
Optional
Set true only after reviewing application/package semantics of existing Source Link task dependency pins. Admits already compatible pins on literal, resolved supported targets; does not upgrade those pins. Co-upgrades must be separately selected with UpgradeNuGetPackageVersion and reviewed before this step. Older/uncertain pins remain closed.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeGitHubSourceLinkForSdk10 \
-P Sdk10BuildConfirmed= falseInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.