Skip to content

Commit f82f353

Browse files
authored
Update caching to v8.0.0 on .NET 8.0 build (#511)
Fixes #488
1 parent 3d59a66 commit f82f353

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/Microsoft.AspNetCore.SystemWebAdapters/Microsoft.AspNetCore.SystemWebAdapters.csproj

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0;net8.0;netstandard2.0;net45;net472</TargetFrameworks>
@@ -33,10 +33,22 @@
3333
<Compile Include="HtmlString.cs" />
3434
</ItemGroup>
3535

36-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net8.0' ">
36+
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
37+
3738
<FrameworkReference Include="Microsoft.AspNetCore.App" />
3839

3940
<PackageReference Include="System.Runtime.Caching" Version="6.0.0" />
41+
42+
<Using Include="Microsoft.AspNetCore.Http.HttpContext" Alias="HttpContextCore" />
43+
<Using Include="Microsoft.AspNetCore.Http.HttpResponse" Alias="HttpResponseCore" />
44+
<Using Include="Microsoft.AspNetCore.Http.HttpRequest" Alias="HttpRequestCore" />
45+
</ItemGroup>
46+
47+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
48+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
49+
50+
<PackageReference Include="System.Runtime.Caching" Version="8.0.0" />
51+
4052
<Using Include="Microsoft.AspNetCore.Http.HttpContext" Alias="HttpContextCore" />
4153
<Using Include="Microsoft.AspNetCore.Http.HttpResponse" Alias="HttpResponseCore" />
4254
<Using Include="Microsoft.AspNetCore.Http.HttpRequest" Alias="HttpRequestCore" />

0 commit comments

Comments
 (0)