Raise a reviewed explicit C# language version

Proprietary

Raise one reviewed numeric LangVersion pin after evaluating generator, analyzer and source compatibility. Does not edit shared or conditional language policy.

OpenRewrite.CSharp.Recipes.RaiseReviewedCSharpLanguageVersion

Required

Exact repository-relative project path.

Exact numeric current C# version.

Reviewed higher numeric C# version.

Optional

LanguagePolicyReviewedBoolean

Review language, generators, analyzers, inherited imports and CI support before opting in.

RegenerateMarkerBoolean

Refresh evaluated project markers after edits; compositions may defer to a final attestation.

mod run . --recipe=OpenRewrite.CSharp.Recipes.RaiseReviewedCSharpLanguageVersion \ -P ProjectPath='<ProjectPath>' \ -P OldLanguageVersion='<OldLanguageVersion>' \ -P NewLanguageVersion='<NewLanguageVersion>'

Required options ProjectPath, OldLanguageVersion, NewLanguageVersion have no example to run with. Fill them in above.

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.