Skip to content

Commit 9e3bc5d

Browse files
committed
v1.3.0
1 parent 922d0f9 commit 9e3bc5d

33 files changed

+1018
-525
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<ApplicationManifest>app.manifest</ApplicationManifest>
8+
<Authors>zmjack</Authors>
9+
<Company>nstandard.net</Company>
10+
<Description>A manager of the netsh interface portproxy which is to evaluate TCP/IP port redirect on windows.</Description>
11+
<PackageProjectUrl>https://github.com/zmjack/PortProxyGUI</PackageProjectUrl>
12+
<RepositoryUrl>https://github.com/zmjack/PortProxyGUI</RepositoryUrl>
13+
<RepositoryType>git</RepositoryType>
14+
<PackageTags>portproxy TCP/IP redirector</PackageTags>
15+
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
16+
<Copyright>Copyright © nstandard.net 2020</Copyright>
17+
<Version>1.3.0</Version>
18+
<ApplicationIcon>icon.ico</ApplicationIcon>
19+
<AssemblyName>PortProxyGUI</AssemblyName>
20+
<RootNamespace>PortProxyGUI</RootNamespace>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
24+
<DebugType>none</DebugType>
25+
<DebugSymbols>false</DebugSymbols>
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
</PropertyGroup>
28+
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
30+
<PlatformTarget>AnyCPU</PlatformTarget>
31+
</PropertyGroup>
32+
33+
<ItemGroup>
34+
<EmbeddedResource Remove="PortProxyGUI.resx" />
35+
<EmbeddedResource Remove="SetProxy.resx" />
36+
</ItemGroup>
37+
38+
<ItemGroup>
39+
<Compile Include="..\PortProxyGUI - NET35\About.cs" Link="About.cs" />
40+
<Compile Include="..\PortProxyGUI - NET35\About.Designer.cs" Link="About.Designer.cs" />
41+
<Compile Include="..\PortProxyGUI - NET35\PortProxyGUI.cs" Link="PortProxyGUI.cs" />
42+
<Compile Include="..\PortProxyGUI - NET35\PortProxyGUI.Designer.cs" Link="PortProxyGUI.Designer.cs" />
43+
<Compile Include="..\PortProxyGUI - NET35\SetProxy.cs" Link="SetProxy.cs" />
44+
<Compile Include="..\PortProxyGUI - NET35\SetProxy.Designer.cs" Link="SetProxy.Designer.cs" />
45+
</ItemGroup>
46+
47+
<ItemGroup>
48+
<EmbeddedResource Include="..\PortProxyGUI - NET35\About.resx" Link="About.resx" />
49+
<EmbeddedResource Include="..\PortProxyGUI - NET35\About.zh-CN.resx" Link="About.zh-CN.resx" />
50+
<EmbeddedResource Include="..\PortProxyGUI - NET35\PortProxyGUI.resx" Link="PortProxyGUI.resx" />
51+
<EmbeddedResource Include="..\PortProxyGUI - NET35\PortProxyGUI.zh-CN.resx" Link="PortProxyGUI.zh-CN.resx" />
52+
<EmbeddedResource Include="..\PortProxyGUI - NET35\SetProxy.resx" Link="SetProxy.resx" />
53+
<EmbeddedResource Include="..\PortProxyGUI - NET35\SetProxy.zh-CN.resx" Link="SetProxy.zh-CN.resx" />
54+
</ItemGroup>
55+
56+
<ItemGroup>
57+
<None Include="..\LICENSE.md">
58+
<Pack>True</Pack>
59+
<PackagePath></PackagePath>
60+
</None>
61+
</ItemGroup>
62+
63+
<ItemGroup>
64+
<PackageReference Include="SQLib.Sqlite" Version="0.8.6" />
65+
</ItemGroup>
66+
67+
<ItemGroup>
68+
<ProjectReference Include="..\PortProxyGUI - NET35\PortProxyGUI - NET35 - UI.csproj" />
69+
</ItemGroup>
70+
71+
<ItemGroup>
72+
<Compile Update="PortProxyGUI.cs">
73+
<SubType>Form</SubType>
74+
</Compile>
75+
</ItemGroup>
76+
77+
<ItemGroup>
78+
<EmbeddedResource Update="PortProxyGUI.zh-CN.resx">
79+
<SubType>Designer</SubType>
80+
</EmbeddedResource>
81+
</ItemGroup>
82+
83+
<Import Project="..\PortProxyGUI.Shared\PortProxyGUI.Shared.projitems" Label="Shared" />
84+
85+
</Project>

PortProxyGUI - Core31/Program.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using PortProxyGUI.Data;
2+
using System;
3+
using System.Windows.Forms;
4+
5+
namespace PortProxyGUI
6+
{
7+
static class Program
8+
{
9+
public static readonly ApplicationDbScope SqliteDbScope = ApplicationDbScope.UseDefault();
10+
11+
/// <summary>
12+
/// The main entry point for the application.
13+
/// </summary>
14+
[STAThread]
15+
static void Main()
16+
{
17+
SqliteDbScope.Migrate();
18+
Application.SetHighDpiMode(HighDpiMode.SystemAware);
19+
Application.EnableVisualStyles();
20+
Application.SetCompatibleTextRenderingDefault(false);
21+
Application.Run(new PortProxyGUI());
22+
}
23+
}
24+
}

PortProxyGUI - Core31/app.manifest

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5+
<security>
6+
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7+
<!-- UAC Manifest Options
8+
If you want to change the Windows User Account Control level replace the
9+
requestedExecutionLevel node with one of the following.
10+
11+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
12+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
13+
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
14+
15+
Specifying requestedExecutionLevel element will disable file and registry virtualization.
16+
Remove this element if your application requires this virtualization for backwards
17+
compatibility.
18+
-->
19+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
20+
</requestedPrivileges>
21+
</security>
22+
</trustInfo>
23+
24+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
25+
<application>
26+
<!-- A list of the Windows versions that this application has been tested on
27+
and is designed to work with. Uncomment the appropriate elements
28+
and Windows will automatically select the most compatible environment. -->
29+
30+
<!-- Windows Vista -->
31+
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
32+
33+
<!-- Windows 7 -->
34+
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
35+
36+
<!-- Windows 8 -->
37+
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
38+
39+
<!-- Windows 8.1 -->
40+
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
41+
42+
<!-- Windows 10 -->
43+
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
44+
45+
</application>
46+
</compatibility>
47+
48+
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
49+
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
50+
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
51+
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
52+
<!--
53+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
54+
<windowsSettings>
55+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
56+
</windowsSettings>
57+
</application>
58+
-->
59+
60+
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
61+
<!--
62+
<dependency>
63+
<dependentAssembly>
64+
<assemblyIdentity
65+
type="win32"
66+
name="Microsoft.Windows.Common-Controls"
67+
version="6.0.0.0"
68+
processorArchitecture="*"
69+
publicKeyToken="6595b64144ccf1df"
70+
language="*"
71+
/>
72+
</dependentAssembly>
73+
</dependency>
74+
-->
75+
76+
</assembly>

PortProxyGUI - Core31/icon.ico

126 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Diagnostics;
3+
using System.Drawing;
34
using System.Windows.Forms;
45

56
namespace PortProxyGUI
@@ -11,7 +12,10 @@ public partial class About : Form
1112
public About(PortProxyGUI portProxyGUI)
1213
{
1314
PortProxyGUI = portProxyGUI;
15+
1416
InitializeComponent();
17+
Font = Util.UiFont;
18+
1519
label_version.Text = label_version.Text + " v" + Application.ProductVersion;
1620
}
1721

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,22 @@
112112
<value>2.0</value>
113113
</resheader>
114114
<resheader name="reader">
115-
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116116
</resheader>
117117
<resheader name="writer">
118-
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
120+
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
121+
<data name="linkLabel1.Font" type="System.Drawing.Font, System.Drawing">
122+
<value>Microsoft YaHei UI, 9pt</value>
123+
</data>
121124
<data name="linkLabel1.Location" type="System.Drawing.Point, System.Drawing">
122125
<value>12, 101</value>
123126
</data>
124127
<data name="linkLabel1.Size" type="System.Drawing.Size, System.Drawing">
125128
<value>320, 25</value>
126129
</data>
127-
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
130+
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
128131
<data name="linkLabel1.TabIndex" type="System.Int32, mscorlib">
129132
<value>0</value>
130133
</data>
@@ -138,14 +141,17 @@
138141
<value>linkLabel1</value>
139142
</data>
140143
<data name="&gt;&gt;linkLabel1.Type" xml:space="preserve">
141-
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
144+
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
142145
</data>
143146
<data name="&gt;&gt;linkLabel1.Parent" xml:space="preserve">
144147
<value>$this</value>
145148
</data>
146149
<data name="&gt;&gt;linkLabel1.ZOrder" xml:space="preserve">
147150
<value>3</value>
148151
</data>
152+
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
153+
<value>Microsoft YaHei UI, 9pt</value>
154+
</data>
149155
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
150156
<value>12, 31</value>
151157
</data>
@@ -156,8 +162,8 @@
156162
<value>1</value>
157163
</data>
158164
<data name="label1.Text" xml:space="preserve">
159-
<value>This is a free software.
160-
You can browse the source code on GitHub.</value>
165+
<value>It's open source software,
166+
and you don't have to pay anything.</value>
161167
</data>
162168
<data name="label1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
163169
<value>MiddleCenter</value>
@@ -166,14 +172,17 @@ You can browse the source code on GitHub.</value>
166172
<value>label1</value>
167173
</data>
168174
<data name="&gt;&gt;label1.Type" xml:space="preserve">
169-
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
175+
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
170176
</data>
171177
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
172178
<value>$this</value>
173179
</data>
174180
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
175181
<value>2</value>
176182
</data>
183+
<data name="label_version.Font" type="System.Drawing.Font, System.Drawing">
184+
<value>Microsoft YaHei UI, 9pt</value>
185+
</data>
177186
<data name="label_version.Location" type="System.Drawing.Point, System.Drawing">
178187
<value>12, 6</value>
179188
</data>
@@ -193,14 +202,17 @@ You can browse the source code on GitHub.</value>
193202
<value>label_version</value>
194203
</data>
195204
<data name="&gt;&gt;label_version.Type" xml:space="preserve">
196-
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
205+
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
197206
</data>
198207
<data name="&gt;&gt;label_version.Parent" xml:space="preserve">
199208
<value>$this</value>
200209
</data>
201210
<data name="&gt;&gt;label_version.ZOrder" xml:space="preserve">
202211
<value>1</value>
203212
</data>
213+
<data name="label_Star.Font" type="System.Drawing.Font, System.Drawing">
214+
<value>Microsoft YaHei UI, 9pt</value>
215+
</data>
204216
<data name="label_Star.Location" type="System.Drawing.Point, System.Drawing">
205217
<value>12, 78</value>
206218
</data>
@@ -211,7 +223,7 @@ You can browse the source code on GitHub.</value>
211223
<value>2</value>
212224
</data>
213225
<data name="label_Star.Text" xml:space="preserve">
214-
<value>Star me at:</value>
226+
<value>Get software updates from GitHub, or star me:</value>
215227
</data>
216228
<data name="label_Star.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
217229
<value>MiddleCenter</value>
@@ -220,15 +232,15 @@ You can browse the source code on GitHub.</value>
220232
<value>label_Star</value>
221233
</data>
222234
<data name="&gt;&gt;label_Star.Type" xml:space="preserve">
223-
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
235+
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
224236
</data>
225237
<data name="&gt;&gt;label_Star.Parent" xml:space="preserve">
226238
<value>$this</value>
227239
</data>
228240
<data name="&gt;&gt;label_Star.ZOrder" xml:space="preserve">
229241
<value>0</value>
230242
</data>
231-
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
243+
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
232244
<value>True</value>
233245
</metadata>
234246
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
@@ -2395,7 +2407,7 @@ You can browse the source code on GitHub.</value>
23952407
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
23962408
</value>
23972409
</data>
2398-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
2410+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
23992411
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
24002412
<value>3, 2, 3, 2</value>
24012413
</data>
@@ -2409,6 +2421,6 @@ You can browse the source code on GitHub.</value>
24092421
<value>About</value>
24102422
</data>
24112423
<data name="&gt;&gt;$this.Type" xml:space="preserve">
2412-
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
2424+
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
24132425
</data>
24142426
</root>

0 commit comments

Comments
 (0)