Extend reviewed target-framework condition policies
ProprietaryOpt-in extension of positive raw target-framework equality conditions in explicitly selected MSBuild files. Preserve existing target policy and add its reviewed replacement-target case. Unsupported functions, inequalities and existing replacement buckets remain unchanged. Does not change target declarations or infer that a build policy is appropriate for a new runtime.
OpenRewrite. CSharp. Recipes. ExtendReviewedTargetFrameworkConditionsRequired
Semicolon-delimited exact repository-relative .csproj/.vbproj/.fsproj/.props/.targets paths. No globs or parent traversal.
Exact raw target framework whose positive equality policy has been reviewed.
Exact raw replacement target framework to receive the reviewed policy.
Optional
Review all selected files' target conditions and imported build policy before permitting the new runtime to use the old policy. Defaults to false.
Refresh project attestation after changed build policy. Defaults to true.
mod run . --recipe= OpenRewrite. CSharp. Recipes. ExtendReviewedTargetFrameworkConditions \
-P BuildFilePaths= '<BuildFilePaths>' \
-P OldTargetFramework= net8.0 \
-P NewTargetFramework= net10.0Its required option BuildFilePaths has no example to run with. Fill it in above.
Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.