Skip to content

Commit 8f872c1

Browse files
committed
Added multiple TargetFrameworks
1 parent d516ca6 commit 8f872c1

File tree

5 files changed

+468
-2
lines changed

5 files changed

+468
-2
lines changed

Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@
4444
<LangVersion>8.0</LangVersion>
4545
</PropertyGroup>
4646

47+
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
48+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
49+
</PropertyGroup>
50+
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
51+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
52+
</PropertyGroup>
53+
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
54+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
55+
</PropertyGroup>
56+
4757
</Project>

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Project>
33

44
<PropertyGroup>
5+
<TargetFrameworks>netcoreapp3.1;netcoreapp2.1;net472;netstandard2.1;netstandard2.0;netstandard1.6</TargetFrameworks>
56
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileDirectory)..\Directory.Build.props</MSBuildAllProjects>
67
<SynercodingProjectCategory>src</SynercodingProjectCategory>
78
</PropertyGroup>
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.1</TargetFramework>
54
<Nullable>enable</Nullable>
65
<LangVersion>8.0</LangVersion>
76
</PropertyGroup>
87

98
<Import Project="$(MSBuildThisFileDirectory)\PackageDetails.props" />
109

10+
<ItemGroup Condition="'$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard1.6'">
11+
<PackageReference Include="System.Memory " Version="4.5.4" />
12+
</ItemGroup>
13+
14+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
15+
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
16+
</ItemGroup>
17+
1118
</Project>

0 commit comments

Comments
 (0)