Created
April 8, 2019 18:11
-
-
Save moh-hassan/0ce9433adc66b521e6b215b243af2af2 to your computer and use it in GitHub Desktop.
define constant in msbuild project: NETFRAMEWORK, NETSTANDARD and NETCORE
This file contains 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
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))"> | |
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup Condition="$(TargetFramework.StartsWith('netstandard'))"> | |
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp'))"> | |
<DefineConstants>$(DefineConstants);NETCORE</DefineConstants> | |
</PropertyGroup> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment