Remove MSBuild property
ProprietaryRemoves an MSBuild property element (e.g. <RuntimeFrameworkVersion>) from <PropertyGroup> in .csproj files.
OpenRewrite. CSharp. Recipes. RemoveMSBuildPropertyRequired
The MSBuild property element name to remove (case-sensitive).
Optional
RegenerateMarkerBoolean
Whether to re-run dotnet restore after the edit to refresh the project's MSBuildProject marker. Defaults to true. Composite recipes that chain multiple csproj-mutating steps may set this to false on intermediate steps and finalize once with EnsureCsprojAttestation.
mod run . --recipe= OpenRewrite. CSharp. Recipes. RemoveMSBuildProperty \
-P PropertyName= RuntimeFrameworkVersionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.