Skip to content

Commit a682b41

Browse files
committed
停止对 .NET 6.0 的支持。.NET 8.0 已提供向下兼容。
1 parent 0c33540 commit a682b41

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

src/Senparc.CO2NET.AspNet/Senparc.CO2NET.AspNet.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
5-
<Version>1.4.3</Version>
4+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
5+
<Version>1.5.0</Version>
66
<AssemblyName>Senparc.CO2NET.AspNet</AssemblyName>
77
<RootNamespace>Senparc.CO2NET.AspNet</RootNamespace>
88
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
@@ -32,6 +32,7 @@
3232
v1.3.0 升级到 .NET 8.0
3333
v1.4.0 .NET 6.0 和 .NET 8.0 程序集不再依赖 Microsoft.AspNetCore.Hosting.Abstractions 和 Microsoft.AspNetCore.Http.Abstractions
3434
[2024-09-11] v1.4.3 更新 Cache, remove InsertToCache(), add Count(prefix)
35+
[2024-10-07] v1.5.0 停止对 .NET 6.0 的支持
3536
</PackageReleaseNotes>
3637
<RepositoryUrl>https://github.com/Senparc/Senparc.CO2NET</RepositoryUrl>
3738
<Configurations>Debug;Release;Test</Configurations>
@@ -82,15 +83,15 @@
8283
8384
</ItemGroup>-->
8485
<!--<ItemGroup Condition="('$(TargetFramework)' == 'netstandard2.0') OR ('$(TargetFramework)' == 'netstandard2.1')">-->
85-
<ItemGroup Condition="'$(TargetFramework)' != 'net462' And '$(TargetFramework)' != 'net6.0' And '$(TargetFramework)' != 'net8.0'">
86+
<ItemGroup Condition="'$(TargetFramework)' != 'net462' And '$(TargetFramework)' != 'net8.0'">
8687
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions">
8788
<Version>2.2.0</Version>
8889
</PackageReference>
8990
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions">
9091
<Version>2.2.0</Version>
9192
</PackageReference>
9293
</ItemGroup>
93-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'net8.0'">
94+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
9495
<PackageReference Include="Microsoft.AspNetCore.App" />
9596
</ItemGroup>
9697
</Project>

src/Senparc.CO2NET.Cache.Memcached/Senparc.CO2NET.Cache.Memcached.csproj

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>net462;netstandard2.0;netcoreapp3.1;net6.0</TargetFrameworks>
5-
<Version>4.2.5</Version>
4+
<TargetFrameworks>net462;netstandard2.0;net8.0</TargetFrameworks>
5+
<Version>4.3.0</Version>
66
<AssemblyName>Senparc.CO2NET.Cache.Memcached</AssemblyName>
77
<RootNamespace>Senparc.CO2NET.Cache.Memcached</RootNamespace>
88
<Description>微信公众账号 - Memcached 模块
@@ -88,6 +88,7 @@ https://github.com/JeffreySu/WeiXinMPSDK</Description>
8888
v3.4.103 支持新版本 CO2NET
8989
v4.1.3 MemcachedObjectCacheStrategy.Get() 方法添加纯字符串的判断
9090
[2024-09-11] v4.2.5 更新 Cache, remove InsertToCache(), add Count(prefix)
91+
[2024-10-07] v4.3.0 停止对 .NET 6.0 的支持
9192
</PackageReleaseNotes>
9293
<RepositoryUrl>https://github.com/Senparc/Senparc.CO2NET</RepositoryUrl>
9394
<Configurations>Debug;Release;Test</Configurations>
@@ -118,13 +119,9 @@ https://github.com/JeffreySu/WeiXinMPSDK</Description>
118119
<OutputPath>..\BuildOutPut\</OutputPath>
119120
<DocumentationFile>..\BuildOutPut\netstandard2.0\Senparc.CO2NET.Cache.Memcached.xml</DocumentationFile>
120121
</PropertyGroup>
121-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.1|AnyCPU'">
122+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
122123
<OutputPath>..\BuildOutPut\</OutputPath>
123-
<DocumentationFile>..\BuildOutPut\netcoreapp3.0\Senparc.CO2NET.Cache.Memcached.xml</DocumentationFile>
124-
</PropertyGroup>
125-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'">
126-
<OutputPath>..\BuildOutPut\</OutputPath>
127-
<DocumentationFile>..\BuildOutPut\net6.0\Senparc.CO2NET.Cache.Memcached.xml</DocumentationFile>
124+
<DocumentationFile>..\BuildOutPut\net8.0\Senparc.CO2NET.Cache.Memcached.xml</DocumentationFile>
128125
</PropertyGroup>
129126
<ItemGroup>
130127
<None Include="..\Senparc.CO2NET\icon.jpg" Pack="true" Visible="false" PackagePath="" />
@@ -154,9 +151,6 @@ https://github.com/JeffreySu/WeiXinMPSDK</Description>
154151
<ItemGroup>
155152
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
156153
</ItemGroup>
157-
<!--<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'net6.0' ">
158-
<PackageReference Include="EnyimMemcachedCore" Version="2.5.3" />
159-
</ItemGroup>-->
160154
<ItemGroup>
161155
<ProjectReference Include="..\Senparc.CO2NET\Senparc.CO2NET.csproj" />
162156
</ItemGroup>

src/Senparc.CO2NET.WebApi/Senparc.CO2NET.WebApi.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;net6.0;net8.0</TargetFrameworks>
5-
<Version>1.6.3</Version>
4+
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>
5+
<Version>1.7.0</Version>
66
<LangVersion>latest</LangVersion>
77
<AssemblyName>Senparc.CO2NET.WebApi</AssemblyName>
88
<RootNamespace>Senparc.CO2NET.WebApi</RootNamespace>
@@ -42,6 +42,7 @@
4242
2、移除 Microsoft.AspNetCore.Mvc.Core 的引用
4343
2、引用最新的 Senparc.CO2NET.AspNet,.NET 6.0 和 .NET 8.0 程序集不再依赖 Microsoft.AspNetCore.Hosting.Abstractions 和 Microsoft.AspNetCore.Http.Abstractions
4444
[2024-09-11] v1.6.3 更新 Cache, remove InsertToCache(), add Count(prefix)
45+
[2024-10-07] v1.7.0 停止对 .NET 6.0 的支持
4546
</PackageReleaseNotes>
4647
</PropertyGroup>
4748
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">

0 commit comments

Comments
 (0)