Skip to content

Commit 8e6604d

Browse files
committed
Update Build.props
1 parent 588679a commit 8e6604d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_1</DefineConstants>
4444
</PropertyGroup>
4545

46+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
47+
<DefineConstants>$(DefineConstants);NET50</DefineConstants>
48+
</PropertyGroup>
49+
50+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'net5.0' ">
51+
<DefineConstants>$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants>
52+
</PropertyGroup>
53+
4654
<ItemGroup>
4755
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
4856
</ItemGroup>

0 commit comments

Comments
 (0)