Skip to content

Commit f53077d

Browse files
committed
.net3.1升级至.net8.0版本
1 parent 4500f10 commit f53077d

File tree

7 files changed

+23
-25
lines changed

7 files changed

+23
-25
lines changed

AutoArchive/AutoArchive/AutoArchive.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0-windows</TargetFramework>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ApplicationIcon>gouhuo.ico</ApplicationIcon>
88
<SelfContained>false</SelfContained>
99
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1010
<ApplicationManifest>app.manifest</ApplicationManifest>
1111
<StartupObject></StartupObject>
1212
<Platforms>AnyCPU;x64</Platforms>
13+
<Version>2.0.0</Version>
14+
<Authors>BugLordI</Authors>
15+
<Company>BugLordI</Company>
16+
<Copyright>Copyright (c) 2023-2025 BugZhang(BugLordl). All rights reserved.</Copyright>
17+
<PackageProjectUrl>https://github.com/BugLordI/EldenRingAutoArchive</PackageProjectUrl>
1318
</PropertyGroup>
1419

1520
<ItemGroup>
16-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.17" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.17" />
18-
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
21+
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
1922
</ItemGroup>
2023

2124
<ItemGroup>

AutoArchive/AutoArchivePlus/AutoArchivePlus.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0-windows</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<ApplicationIcon>xinwang-ds3-ico.ico</ApplicationIcon>
88
<ApplicationManifest>app.manifest</ApplicationManifest>
99
<SelfContained>false</SelfContained>
1010
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1111
<UseWindowsForms>True</UseWindowsForms>
1212
<Platforms>AnyCPU;x64</Platforms>
13-
<Version>1.5.0</Version>
13+
<Version>2.0.0</Version>
1414
<Authors>BugLordI</Authors>
1515
<Company>BugLordI</Company>
16-
<Copyright>Copyright (c) 2025 BugZhang(BugLordl). All rights reserved.</Copyright>
16+
<Copyright>Copyright (c) 2023-2025 BugZhang(BugLordl). All rights reserved.</Copyright>
1717
<PackageProjectUrl>https://github.com/BugLordI/EldenRingAutoArchive</PackageProjectUrl>
1818
</PropertyGroup>
1919

AutoArchive/DataBase/DataBase.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Platforms>AnyCPU;x64</Platforms>
66
</PropertyGroup>
77

@@ -22,9 +22,8 @@
2222
</PropertyGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.17" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.17" />
27-
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
2827
</ItemGroup>
2928

3029
</Project>

AutoArchive/SteamTool/SteamTool.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Platforms>AnyCPU;x64</Platforms>
66
</PropertyGroup>
77

AutoArchive/Tools/Objects.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,20 @@
55
* Author: BugZhang(BugLordl)
66
* Url: https://github.com/BugLordI/EldenRingAutoArchive
77
*/
8-
using System.IO;
9-
using System.Runtime.Serialization.Formatters.Binary;
8+
using System.Text.Json;
109

1110
namespace Tools
1211
{
1312
public static class Objects
1413
{
1514
public static T DeepCopyByBinary<T>(this T obj)
1615
{
17-
object retval;
18-
using (MemoryStream ms = new MemoryStream())
16+
if (obj == null)
1917
{
20-
BinaryFormatter bf = new BinaryFormatter();
21-
bf.Serialize(ms, obj);
22-
ms.Seek(0, SeekOrigin.Begin);
23-
retval = bf.Deserialize(ms);
24-
ms.Close();
18+
return default(T);
2519
}
26-
return (T)retval;
20+
string json = JsonSerializer.Serialize(obj);
21+
return JsonSerializer.Deserialize<T>(json);
2722
}
28-
2923
}
3024
}

AutoArchive/Tools/Tools.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Platforms>AnyCPU;x64</Platforms>
66
</PropertyGroup>
77

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
<h3>许可证:</h3>
2525
<a href="https://github.com/zhangmuyu1995/EldenRingAutoArchive/blob/master/LICENSE">Apache License 2.0</a>
2626
<h3>运行环境下载:</h3>
27-
<a href="https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-3.1.28-windows-x64-installer" target="_blank">NetCore 3.1.28(64位)</a>
27+
<span>点击下载>>></span> <a href="https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-3.1.28-windows-x64-installer" target="_blank">NetCore 3.1.28(64位)</a>
2828
<p>Windows10 21H1(19043) 以上版本自带NetCore3.1和.NetFramework4.8运行环境</p>
29+
<span>点击下载>>></span> <a href="https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-8.0.0-windows-x64-installer">.Net8.0(64位)</a>
30+
<p>2.0.0版本以后需要.Net8.0运行环境支持</p>
2931
<h3>依赖控件(Plus版本):</h3>
3032
<ol>
3133
<li>

0 commit comments

Comments
 (0)