diff --git a/BetterGenshinImpact.Test/BetterGenshinImpact.Test.csproj b/BetterGenshinImpact.Test/BetterGenshinImpact.Test.csproj index 362f3c78..94f70e0d 100644 --- a/BetterGenshinImpact.Test/BetterGenshinImpact.Test.csproj +++ b/BetterGenshinImpact.Test/BetterGenshinImpact.Test.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 enable enable true diff --git a/BetterGenshinImpact.Test/MainWindow.xaml.cs b/BetterGenshinImpact.Test/MainWindow.xaml.cs index 41b8851a..5cf59cc3 100644 --- a/BetterGenshinImpact.Test/MainWindow.xaml.cs +++ b/BetterGenshinImpact.Test/MainWindow.xaml.cs @@ -17,7 +17,7 @@ public partial class MainWindow : Window public MainWindow() { InitializeComponent(); - Global.StartUpPath = @"D:\HuiPrograming\Projects\CSharp\MiHoYo\BetterGenshinImpact\BetterGenshinImpact\bin\x64\Debug\net7.0-windows10.0.22621.0"; + Global.StartUpPath = @"D:\HuiPrograming\Projects\CSharp\MiHoYo\BetterGenshinImpact\BetterGenshinImpact\bin\x64\Debug\net8.0-windows10.0.22621.0"; } private void ShowCameraRecWindow(object sender, System.Windows.RoutedEventArgs e) diff --git a/BetterGenshinImpact.Win32/BetterGenshinImpact.Win32.csproj b/BetterGenshinImpact.Win32/BetterGenshinImpact.Win32.csproj index a354a6a3..8c1de519 100644 --- a/BetterGenshinImpact.Win32/BetterGenshinImpact.Win32.csproj +++ b/BetterGenshinImpact.Win32/BetterGenshinImpact.Win32.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0-windows10.0.22621.0 enable enable x64 diff --git a/BetterGenshinImpact/BetterGenshinImpact.csproj b/BetterGenshinImpact/BetterGenshinImpact.csproj index fa95ff2f..1ea68496 100644 --- a/BetterGenshinImpact/BetterGenshinImpact.csproj +++ b/BetterGenshinImpact/BetterGenshinImpact.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 enable true True diff --git a/BetterGenshinImpact/Helpers/ObjectUtils.cs b/BetterGenshinImpact/Helpers/ObjectUtils.cs index befa8049..2c34774e 100644 --- a/BetterGenshinImpact/Helpers/ObjectUtils.cs +++ b/BetterGenshinImpact/Helpers/ObjectUtils.cs @@ -1,10 +1,12 @@ -using System.IO; +using System; +using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace BetterGenshinImpact.Helpers; public class ObjectUtils { + [Obsolete("Obsolete")] public static byte[] Serialize(object obj) { var ms = new MemoryStream(); @@ -16,6 +18,7 @@ public class ObjectUtils return bytes; } + [Obsolete("Obsolete")] public static object Deserialize(byte[] bytes) { //利用传来的byte[]创建一个内存流 diff --git a/BetterGenshinImpact/Properties/PublishProfiles/FolderProfile.pubxml b/BetterGenshinImpact/Properties/PublishProfiles/FolderProfile.pubxml index 7e33b04f..22527206 100644 --- a/BetterGenshinImpact/Properties/PublishProfiles/FolderProfile.pubxml +++ b/BetterGenshinImpact/Properties/PublishProfiles/FolderProfile.pubxml @@ -6,10 +6,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release x64 - bin\x64\Release\net7.0-windows10.0.22621.0\publish\win-x64\ + bin\x64\Release\net8.0-windows10.0.22621.0\publish\win-x64\ FileSystem <_TargetId>Folder - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 win-x64 false true diff --git a/Fischless.GameCapture/Fischless.GameCapture.csproj b/Fischless.GameCapture/Fischless.GameCapture.csproj index 4c1b0f00..ffa3897d 100644 --- a/Fischless.GameCapture/Fischless.GameCapture.csproj +++ b/Fischless.GameCapture/Fischless.GameCapture.csproj @@ -1,7 +1,7 @@  - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 enable enable x64 diff --git a/Fischless.HotkeyCapture/Fischless.HotkeyCapture.csproj b/Fischless.HotkeyCapture/Fischless.HotkeyCapture.csproj index cb2f3b19..91e6710c 100644 --- a/Fischless.HotkeyCapture/Fischless.HotkeyCapture.csproj +++ b/Fischless.HotkeyCapture/Fischless.HotkeyCapture.csproj @@ -1,7 +1,7 @@  - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 enable enable x64 diff --git a/Fischless.KeyboardCapture/Fischless.KeyboardCapture.csproj b/Fischless.KeyboardCapture/Fischless.KeyboardCapture.csproj index 2e94b90f..3f8ffa14 100644 --- a/Fischless.KeyboardCapture/Fischless.KeyboardCapture.csproj +++ b/Fischless.KeyboardCapture/Fischless.KeyboardCapture.csproj @@ -1,7 +1,7 @@  - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 enable enable x64 diff --git a/Vision.WindowCapture.Test/Vision.WindowCapture.Test.csproj b/Vision.WindowCapture.Test/Vision.WindowCapture.Test.csproj index 80083d10..e155b5f3 100644 --- a/Vision.WindowCapture.Test/Vision.WindowCapture.Test.csproj +++ b/Vision.WindowCapture.Test/Vision.WindowCapture.Test.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows10.0.22000.0 + net8.0-windows10.0.22621.0 enable true 12.0 diff --git a/Vision.WindowCapture/Vision.WindowCapture.csproj b/Vision.WindowCapture/Vision.WindowCapture.csproj index 452c5543..73f9196f 100644 --- a/Vision.WindowCapture/Vision.WindowCapture.csproj +++ b/Vision.WindowCapture/Vision.WindowCapture.csproj @@ -1,7 +1,7 @@ - net7.0-windows10.0.22000.0 + net8.0-windows10.0.22621.0 enable enable 12.0