Created
October 17, 2020 15:51
-
-
Save dasMulli/7caede3ed6ade06b82545930cba59657 to your computer and use it in GitHub Desktop.
Compiler consant for minimum framework version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<!-- | |
neeeds to be in Directory.Build.targets to be included | |
after SDK's TargetFrameworkIdentifier/-Version inference | |
--> | |
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NetCoreApp' | |
and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '5.0'))"> | |
<DefineConstants>$(DefineConstants);AT_LEAST_NET5_0</DefineConstants> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment