Depend on Microsoft.AspNetCore.App for .NET 8 and .NET 10 (#1544)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2026-11-15 09:09:00 +01:00
1 parent e4e11d35b5
commit 95c6ccdbf8
3 files changed
+10 -8

No files matched your search

@@ -26,11 +26,19 @@
</PropertyGroup>
<!-- CVE -->
<ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' != 'net8.0' and '$(TargetFramework)' != 'net10.0' ">
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.14" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.3.14" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net10.0' ">
<!--
This project referenced the legacy Microsoft.AspNetCore.Http 2.3.x package which depends on a
Microsoft.AspNetCore.WebUtilities inside GHSA-6527-9fp8-r4x6, so it shipped a vulnerable dependency to every consumer.
-->
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Stef.Validation" Version="0.3.0" />
<PackageReference Include="AnyOf" Version="0.5.0.1" />