Skip to content

Instantly share code, notes, and snippets.

@Wind010
Last active January 16, 2020 22:57
Show Gist options
  • Save Wind010/6951b9fb30b1beaf1d1beac1de2a1abb to your computer and use it in GitHub Desktop.
Save Wind010/6951b9fb30b1beaf1d1beac1de2a1abb to your computer and use it in GitHub Desktop.
Bash script to update all .csproj to .NET 3.1. Relevant to API and Test projects. Exclude libraries that are targeting .NET Standard
find . -name "*.csproj" -exec sed -b -i "s,<TargetFramework>[^<]*</TargetFramework>,<TargetFramework>netcoreapp3.1</TargetFramework>," {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment