Skip to content

Instantly share code, notes, and snippets.

@dadhi
Created September 2, 2024 13:30
Show Gist options
  • Save dadhi/b6d19276c0619d78b41d93138b07a562 to your computer and use it in GitHub Desktop.
Save dadhi/b6d19276c0619d78b41d93138b07a562 to your computer and use it in GitHub Desktop.
better_target_framework_selector.csproj
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net48;$(TargetFrameworks)</TargetFrameworks>
<IsPackable>false</IsPackable>
<DefineConstants Condition="'$(TargetFramework)' != 'net48'">$(DefineConstants);READONLYSPAN</DefineConstants>
</PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment