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

Commit 4f588a4

Browse files
committed
Update Directory.Build.props
1 parent b2a4d70 commit 4f588a4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/Directory.Build.props

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,27 @@
2424
<Optimize>true</Optimize>
2525
</PropertyGroup>
2626

27-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
28-
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
27+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net451' OR '$(TargetFramework)' == 'net452' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net472' ">
28+
<DefineConstants>$(DefineConstants);NETFX;NET45</DefineConstants>
2929
<SignAssembly>True</SignAssembly>
3030
<DelaySign>False</DelaySign>
3131
<AssemblyOriginatorKeyFile>../servicestack.snk</AssemblyOriginatorKeyFile>
32-
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
35+
<DefineConstants>$(DefineConstants);NETFX;NET472</DefineConstants>
3336
</PropertyGroup>
3437

3538
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
36-
<DefineConstants>$(DefineConstants);NETSTANDARD2_0</DefineConstants>
39+
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_0</DefineConstants>
40+
</PropertyGroup>
41+
42+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
43+
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_1</DefineConstants>
3744
</PropertyGroup>
3845

3946
<ItemGroup>
4047
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
41-
<PackageReference Include="Microsoft.NetFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
42-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
43-
<PrivateAssets>all</PrivateAssets>
44-
</PackageReference>
4548
</ItemGroup>
4649

4750
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

0 commit comments

Comments
 (0)