Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit bf9432b

Browse files
committed
Update Directory.Build.props
1 parent 0d7b022 commit bf9432b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/Directory.Build.props

+11-3
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,23 @@
2525
<Optimize>true</Optimize>
2626
</PropertyGroup>
2727

28-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net451' OR '$(TargetFramework)' == 'net452' OR '$(TargetFramework)' == 'net46' ">
29-
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
28+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net451' OR '$(TargetFramework)' == 'net452' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net472' ">
29+
<DefineConstants>$(DefineConstants);NETFX;NET45</DefineConstants>
3030
<SignAssembly>True</SignAssembly>
3131
<DelaySign>False</DelaySign>
3232
<AssemblyOriginatorKeyFile>../servicestack.snk</AssemblyOriginatorKeyFile>
3333
</PropertyGroup>
3434

35+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
36+
<DefineConstants>$(DefineConstants);NETFX;NET472</DefineConstants>
37+
</PropertyGroup>
38+
3539
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
36-
<DefineConstants>$(DefineConstants);NETSTANDARD2_0</DefineConstants>
40+
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_0</DefineConstants>
41+
</PropertyGroup>
42+
43+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
44+
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_1</DefineConstants>
3745
</PropertyGroup>
3846

3947
<ItemGroup>

0 commit comments

Comments
 (0)