From 5d0334cf8f7c62b9eb177e62e3739b02fcb075b9 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 8 Mar 2024 13:35:50 +0800 Subject: [PATCH] update to .net 8.0 --- OTP/Form1.cs | 2 +- OTP/OTP.csproj | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/OTP/Form1.cs b/OTP/Form1.cs index b20b1ce..e6041d9 100644 --- a/OTP/Form1.cs +++ b/OTP/Form1.cs @@ -57,7 +57,7 @@ namespace OTP // 在标签上显示新生成的密码 // 使用Invoke确保在UI线程上更新UI元素 - this.Invoke((MethodInvoker)(() => label1.Text = newTotpCode)); + this.Invoke((System.Windows.Forms.MethodInvoker)(() => label1.Text = newTotpCode)); } diff --git a/OTP/OTP.csproj b/OTP/OTP.csproj index 0479287..210d8d0 100644 --- a/OTP/OTP.csproj +++ b/OTP/OTP.csproj @@ -1,6 +1,6 @@  - net7.0-windows10.0.22621.0 + net8.0-windows10.0.22621.0 WinExe publish\ true @@ -30,7 +30,7 @@ icon.ico - 7.0 + 10.0.19041.0 1.0.0.1 1.0.0.1 Chenx221 @@ -61,22 +61,20 @@ - - - + + -