Skip to content

Commit cbf19e0

Browse files
authored
Add a .NET 4.7.2 target (#145)
Motivation ---------- Reduce the dependency tree for .NET 4 users since a reference to System.Runtime.CompilerServices.Unsafe is not required for .NET 4, it's in-box. Modifications ------------- Add the target and adjust the package dependencies. Closes #140
1 parent be93614 commit cbf19e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Snappier/Snappier.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net472;netstandard2.0;net8.0</TargetFrameworks>
55

66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
@@ -54,8 +54,11 @@
5454
<None Include="..\images\icon.png" Pack="true" PackagePath="$(PackageIcon)" />
5555
</ItemGroup>
5656

57-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
57+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net472' ">
5858
<PackageReference Include="System.Memory" Version="4.6.3" />
59+
</ItemGroup>
60+
61+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
5962
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2" />
6063
</ItemGroup>
6164

0 commit comments

Comments
 (0)