Remove unnecessary dependency on System.Net.Http (#2610)

* Update Opc.Ua.Bindings.Https.csproj
* The library is not necessary!
This commit is contained in:
Martin Regen
2024-05-04 06:10:14 +02:00
committed by GitHub
parent f82fcc9da3
commit 663ed10285
@@ -19,13 +19,7 @@
</PropertyGroup>
<Choose>
<When Condition="'$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'net5.0' OR '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net8.0'">
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
</When>
<Otherwise>
<When Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1'">
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.1.25" />
@@ -35,6 +29,11 @@
<PackageReference Include="System.Io.Pipelines" Version="6.0.3" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Otherwise>
</Choose>
@@ -50,14 +49,6 @@
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Opc.Ua.Core\Opc.Ua.Core.csproj" />
</ItemGroup>