File tree Expand file tree Collapse file tree 7 files changed +23
-25
lines changed Expand file tree Collapse file tree 7 files changed +23
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >WinExe</OutputType >
5
- <TargetFramework >netcoreapp3.1 </TargetFramework >
5
+ <TargetFramework >net8.0-windows </TargetFramework >
6
6
<UseWindowsForms >true</UseWindowsForms >
7
7
<ApplicationIcon >gouhuo.ico</ApplicationIcon >
8
8
<SelfContained >false</SelfContained >
9
9
<RuntimeIdentifier >win-x64</RuntimeIdentifier >
10
10
<ApplicationManifest >app.manifest</ApplicationManifest >
11
11
<StartupObject ></StartupObject >
12
12
<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 >
13
18
</PropertyGroup >
14
19
15
20
<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" />
19
22
</ItemGroup >
20
23
21
24
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >WinExe</OutputType >
5
- <TargetFramework >netcoreapp3.1 </TargetFramework >
5
+ <TargetFramework >net8.0-windows </TargetFramework >
6
6
<UseWPF >true</UseWPF >
7
7
<ApplicationIcon >xinwang-ds3-ico.ico</ApplicationIcon >
8
8
<ApplicationManifest >app.manifest</ApplicationManifest >
9
9
<SelfContained >false</SelfContained >
10
10
<RuntimeIdentifier >win-x64</RuntimeIdentifier >
11
11
<UseWindowsForms >True</UseWindowsForms >
12
12
<Platforms >AnyCPU;x64</Platforms >
13
- <Version >1.5 .0</Version >
13
+ <Version >2.0 .0</Version >
14
14
<Authors >BugLordI</Authors >
15
15
<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 >
17
17
<PackageProjectUrl >https://github.com/BugLordI/EldenRingAutoArchive</PackageProjectUrl >
18
18
</PropertyGroup >
19
19
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net8.0 </TargetFramework >
5
5
<Platforms >AnyCPU;x64</Platforms >
6
6
</PropertyGroup >
7
7
22
22
</PropertyGroup >
23
23
24
24
<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" />
28
27
</ItemGroup >
29
28
30
29
</Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net8.0 </TargetFramework >
5
5
<Platforms >AnyCPU;x64</Platforms >
6
6
</PropertyGroup >
7
7
Original file line number Diff line number Diff line change 5
5
* Author: BugZhang(BugLordl)
6
6
* Url: https://github.com/BugLordI/EldenRingAutoArchive
7
7
*/
8
- using System . IO ;
9
- using System . Runtime . Serialization . Formatters . Binary ;
8
+ using System . Text . Json ;
10
9
11
10
namespace Tools
12
11
{
13
12
public static class Objects
14
13
{
15
14
public static T DeepCopyByBinary < T > ( this T obj )
16
15
{
17
- object retval ;
18
- using ( MemoryStream ms = new MemoryStream ( ) )
16
+ if ( obj == null )
19
17
{
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 ) ;
25
19
}
26
- return ( T ) retval ;
20
+ string json = JsonSerializer . Serialize ( obj ) ;
21
+ return JsonSerializer . Deserialize < T > ( json ) ;
27
22
}
28
-
29
23
}
30
24
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net8.0 </TargetFramework >
5
5
<Platforms >AnyCPU;x64</Platforms >
6
6
</PropertyGroup >
7
7
Original file line number Diff line number Diff line change 24
24
<h3 >许可证:</h3 >
25
25
<a href =" https://github.com/zhangmuyu1995/EldenRingAutoArchive/blob/master/LICENSE " >Apache License 2.0</a >
26
26
<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 >
28
28
<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 >
29
31
<h3 >依赖控件(Plus版本):</h3 >
30
32
<ol >
31
33
<li >
You can’t perform that action at this time.
0 commit comments