Skip to content

Commit 33167d4

Browse files
committed
Fix System.Net.Http package refernce and remove not needed target frameworks
1 parent 0457794 commit 33167d4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

WebUntisAPI.Client/WebUntisAPI.Client.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net6.0-windows;net7.0-windows;net6.0-android;net7.0-android;net7.0-ios;net47;net481</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net47;net481</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<GenerateDocumentationFile>True</GenerateDocumentationFile>
@@ -25,16 +25,18 @@
2525
<None Include="..\LICENSE.txt">
2626
<Pack>True</Pack>
2727
<PackagePath>\</PackagePath>
28+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2829
</None>
2930
<None Include="..\README.md">
3031
<Pack>True</Pack>
3132
<PackagePath>\</PackagePath>
33+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3234
</None>
3335
</ItemGroup>
3436

3537
<ItemGroup>
36-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
37-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
38+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
39+
<PackageReference Condition="'$(TargetFramework)' == 'net47' or '$(TargetFramework)' == 'net481'" Include="System.Net.Http" Version="4.3.4" />
3840
</ItemGroup>
3941

4042
</Project>

0 commit comments

Comments
 (0)