Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit d83365d

Browse files
Recoded to support .net8
1 parent 2652bee commit d83365d

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

image/push.jpg

52 KB
Loading

v2rayN/PacLib/PacLib.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0-windows</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

v2rayN/ProtosLib/ProtosLib.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0-windows</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66

v2rayN/v2rayN/Global.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ internal class Global
126126

127127
public static readonly Dictionary<string, string> userAgentTxt = new()
128128
{
129-
{"chrome","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" },
129+
{"chrome","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" },
130130
{"firefox","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0" },
131131
{"safari","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15" },
132132
{"edge","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.70" },

v2rayN/v2rayN/Tool/Utils.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,11 @@ public static string GetVersion(bool blFull = true)
906906
public static T DeepCopy<T>(T obj)
907907
{
908908
object retval;
909-
MemoryStream ms = new MemoryStream();
910-
BinaryFormatter bf = new BinaryFormatter();
909+
var ms = new MemoryStream();
910+
#pragma warning disable SYSLIB0011 // 類型或成員已經過時
911+
var bf = new BinaryFormatter();
912+
#pragma warning restore SYSLIB0011 // 類型或成員已經過時
913+
911914
//序列化成流
912915
bf.Serialize(ms, obj);
913916
ms.Seek(0, SeekOrigin.Begin);

v2rayN/v2rayN/v2rayN.csproj

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
<PropertyGroup>
44
<GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
55
<OutputType>WinExe</OutputType>
6-
<TargetFramework>net6.0-windows</TargetFramework>
6+
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
77
<Nullable>enable</Nullable>
88
<UseWPF>true</UseWPF>
99
<ApplicationManifest>app.manifest</ApplicationManifest>
1010
<ImplicitUsings>enable</ImplicitUsings>
1111
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
1212
<Copyright>Copyright © 2017-2023 (GPLv3)</Copyright>
13-
<FileVersion>6.29</FileVersion>
13+
<FileVersion>6.29.1</FileVersion>
14+
<NeutralLanguage>zh-TW</NeutralLanguage>
1415
</PropertyGroup>
15-
16+
1617
<ItemGroup>
1718
<PackageReference Include="Downloader" Version="3.0.6" />
1819
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />

v2rayN/v2rayUpgrade/v2rayUpgrade.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0-windows</TargetFramework>
3+
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
44
<OutputType>WinExe</OutputType>
55
<UseWindowsForms>true</UseWindowsForms>
66
<Copyright>Copyright © 2019-2023 (GPLv3)</Copyright>

0 commit comments

Comments
 (0)