From fa69b879cfd3ab06e214dd2c1ea096845ed7afee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Thu, 15 Jun 2023 14:31:01 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E6=9B=B4=E6=96=B0.NET=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=A1=86=E6=9E=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NetTunnelApp/App.config | 6 + NetTunnelApp/App.xaml | 9 -- NetTunnelApp/App.xaml.cs | 17 --- NetTunnelApp/AssemblyInfo.cs | 10 -- NetTunnelApp/Form1.Designer.cs | 40 ++++++ NetTunnelApp/Form1.cs | 20 +++ NetTunnelApp/MainWindow.xaml | 13 -- NetTunnelApp/MainWindow.xaml.cs | 38 ------ NetTunnelApp/NetTunnelApp.csproj | 98 +++++++++++++-- NetTunnelApp/NetTunnelApp.csproj.user | 14 --- NetTunnelApp/NetTunnelLib.cs | 42 ------- NetTunnelApp/Program.cs | 22 ++++ NetTunnelApp/Properties/AssemblyInfo.cs | 36 ++++++ NetTunnelApp/Properties/Resources.Designer.cs | 71 +++++++++++ NetTunnelApp/Properties/Resources.resx | 117 ++++++++++++++++++ NetTunnelApp/Properties/Settings.Designer.cs | 30 +++++ NetTunnelApp/Properties/Settings.settings | 7 ++ NetTunnelApp/Properties/app.manifest | 73 +++++++++++ ...CoreApp,Version=v6.0.AssemblyAttributes.cs | 4 - .../obj/Debug/net6.0-windows/App.g.cs | 71 ----------- .../obj/Debug/net6.0-windows/App.g.i.cs | 71 ----------- .../obj/Debug/net6.0-windows/MainWindow.g.cs | 87 ------------- .../Debug/net6.0-windows/MainWindow.g.i.cs | 87 ------------- .../NetTunnelApp.AssemblyInfo.cs | 25 ---- .../NetTunnelApp.AssemblyInfoInputs.cache | 1 - ....GeneratedMSBuildEditorConfig.editorconfig | 11 -- ...etTunnelApp.csproj.AssemblyReference.cache | Bin 111581 -> 0 bytes .../NetTunnelApp_MarkupCompile.cache | 20 --- .../NetTunnelApp_MarkupCompile.i.cache | 20 --- .../NetTunnelApp_MarkupCompile.i.lref | 4 - .../NetTunnelApp_MarkupCompile.lref | 4 - NetTunnelSDK/NetTunnelSDK.vcxproj | 3 + NetTunnelSDK/NetTunnelSDK.vcxproj.filters | 3 + NetTunnelSDK/wireguard.cpp | 1 + tunnel_windows.sln | 29 ++--- 35 files changed, 529 insertions(+), 575 deletions(-) create mode 100644 NetTunnelApp/App.config delete mode 100644 NetTunnelApp/App.xaml delete mode 100644 NetTunnelApp/App.xaml.cs delete mode 100644 NetTunnelApp/AssemblyInfo.cs create mode 100644 NetTunnelApp/Form1.Designer.cs create mode 100644 NetTunnelApp/Form1.cs delete mode 100644 NetTunnelApp/MainWindow.xaml delete mode 100644 NetTunnelApp/MainWindow.xaml.cs delete mode 100644 NetTunnelApp/NetTunnelApp.csproj.user delete mode 100644 NetTunnelApp/NetTunnelLib.cs create mode 100644 NetTunnelApp/Program.cs create mode 100644 NetTunnelApp/Properties/AssemblyInfo.cs create mode 100644 NetTunnelApp/Properties/Resources.Designer.cs create mode 100644 NetTunnelApp/Properties/Resources.resx create mode 100644 NetTunnelApp/Properties/Settings.Designer.cs create mode 100644 NetTunnelApp/Properties/Settings.settings create mode 100644 NetTunnelApp/Properties/app.manifest delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/App.g.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/App.g.i.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.i.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfo.cs delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfoInputs.cache delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.GeneratedMSBuildEditorConfig.editorconfig delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.csproj.AssemblyReference.cache delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.cache delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.cache delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.lref delete mode 100644 NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.lref create mode 100644 NetTunnelSDK/wireguard.cpp diff --git a/NetTunnelApp/App.config b/NetTunnelApp/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/NetTunnelApp/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/NetTunnelApp/App.xaml b/NetTunnelApp/App.xaml deleted file mode 100644 index 2018b11..0000000 --- a/NetTunnelApp/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/NetTunnelApp/App.xaml.cs b/NetTunnelApp/App.xaml.cs deleted file mode 100644 index f042c44..0000000 --- a/NetTunnelApp/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace NetTunnelApp -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/NetTunnelApp/AssemblyInfo.cs b/NetTunnelApp/AssemblyInfo.cs deleted file mode 100644 index 8b5504e..0000000 --- a/NetTunnelApp/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] diff --git a/NetTunnelApp/Form1.Designer.cs b/NetTunnelApp/Form1.Designer.cs new file mode 100644 index 0000000..76cd7e1 --- /dev/null +++ b/NetTunnelApp/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace NetTunnelApp +{ + partial class Form1 + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/NetTunnelApp/Form1.cs b/NetTunnelApp/Form1.cs new file mode 100644 index 0000000..4f7e96c --- /dev/null +++ b/NetTunnelApp/Form1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace NetTunnelApp +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/NetTunnelApp/MainWindow.xaml b/NetTunnelApp/MainWindow.xaml deleted file mode 100644 index 0cfc087..0000000 --- a/NetTunnelApp/MainWindow.xaml +++ /dev/null @@ -1,13 +0,0 @@ - - -