Skip to content

Commit 08aeec0

Browse files
committed
init repo
first commit
1 parent 16e488e commit 08aeec0

38 files changed

+1619
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.vs/
2+
Backup/
3+
bin/
4+
obj/
5+
ClashNet.csproj.user
6+
7+
shadowsocks-csharp/3rd/*
8+
packages/*

App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

ClashNet.csproj

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.props" Condition="Exists('packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.props')" />
4+
<Import Project="packages\CefSharp.Common.73.1.130\build\CefSharp.Common.props" Condition="Exists('packages\CefSharp.Common.73.1.130\build\CefSharp.Common.props')" />
5+
<Import Project="packages\cef.redist.x86.73.1.13\build\cef.redist.x86.props" Condition="Exists('packages\cef.redist.x86.73.1.13\build\cef.redist.x86.props')" />
6+
<Import Project="packages\cef.redist.x64.73.1.13\build\cef.redist.x64.props" Condition="Exists('packages\cef.redist.x64.73.1.13\build\cef.redist.x64.props')" />
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<PropertyGroup>
9+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11+
<ProjectGuid>{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}</ProjectGuid>
12+
<OutputType>WinExe</OutputType>
13+
<RootNamespace>ClashNet</RootNamespace>
14+
<AssemblyName>ClashNet</AssemblyName>
15+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
16+
<FileAlignment>512</FileAlignment>
17+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
18+
<Deterministic>true</Deterministic>
19+
<IsWebBootstrapper>false</IsWebBootstrapper>
20+
<NuGetPackageImportStamp>
21+
</NuGetPackageImportStamp>
22+
<PublishUrl>publish\</PublishUrl>
23+
<Install>true</Install>
24+
<InstallFrom>Disk</InstallFrom>
25+
<UpdateEnabled>false</UpdateEnabled>
26+
<UpdateMode>Foreground</UpdateMode>
27+
<UpdateInterval>7</UpdateInterval>
28+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
29+
<UpdatePeriodically>false</UpdatePeriodically>
30+
<UpdateRequired>false</UpdateRequired>
31+
<MapFileExtensions>true</MapFileExtensions>
32+
<AutorunEnabled>true</AutorunEnabled>
33+
<ApplicationRevision>0</ApplicationRevision>
34+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
35+
<UseApplicationTrust>false</UseApplicationTrust>
36+
<BootstrapperEnabled>true</BootstrapperEnabled>
37+
</PropertyGroup>
38+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
39+
<PlatformTarget>x64</PlatformTarget>
40+
<DebugSymbols>true</DebugSymbols>
41+
<DebugType>full</DebugType>
42+
<Optimize>false</Optimize>
43+
<OutputPath>bin\Debug\</OutputPath>
44+
<DefineConstants>DEBUG;TRACE</DefineConstants>
45+
<ErrorReport>prompt</ErrorReport>
46+
<WarningLevel>4</WarningLevel>
47+
<Prefer32Bit>false</Prefer32Bit>
48+
</PropertyGroup>
49+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
50+
<PlatformTarget>AnyCPU</PlatformTarget>
51+
<DebugType>pdbonly</DebugType>
52+
<Optimize>true</Optimize>
53+
<OutputPath>bin\Release\</OutputPath>
54+
<DefineConstants>TRACE</DefineConstants>
55+
<ErrorReport>prompt</ErrorReport>
56+
<WarningLevel>4</WarningLevel>
57+
</PropertyGroup>
58+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
59+
<DebugSymbols>true</DebugSymbols>
60+
<OutputPath>bin\x64\Debug\</OutputPath>
61+
<DefineConstants>DEBUG;TRACE</DefineConstants>
62+
<DebugType>full</DebugType>
63+
<PlatformTarget>x64</PlatformTarget>
64+
<ErrorReport>prompt</ErrorReport>
65+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
66+
</PropertyGroup>
67+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
68+
<OutputPath>bin\x64\Release\</OutputPath>
69+
<DefineConstants>TRACE</DefineConstants>
70+
<Optimize>true</Optimize>
71+
<DebugType>pdbonly</DebugType>
72+
<PlatformTarget>x64</PlatformTarget>
73+
<ErrorReport>prompt</ErrorReport>
74+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
75+
<Prefer32Bit>true</Prefer32Bit>
76+
</PropertyGroup>
77+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
78+
<DebugSymbols>true</DebugSymbols>
79+
<OutputPath>bin\x86\Debug\</OutputPath>
80+
<DefineConstants>DEBUG;TRACE</DefineConstants>
81+
<DebugType>full</DebugType>
82+
<PlatformTarget>x86</PlatformTarget>
83+
<ErrorReport>prompt</ErrorReport>
84+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
85+
</PropertyGroup>
86+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
87+
<OutputPath>bin\x86\Release\</OutputPath>
88+
<DefineConstants>TRACE</DefineConstants>
89+
<Optimize>true</Optimize>
90+
<DebugType>pdbonly</DebugType>
91+
<PlatformTarget>x86</PlatformTarget>
92+
<ErrorReport>prompt</ErrorReport>
93+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
94+
<Prefer32Bit>true</Prefer32Bit>
95+
</PropertyGroup>
96+
<PropertyGroup>
97+
<ApplicationIcon>icon.ico</ApplicationIcon>
98+
</PropertyGroup>
99+
<ItemGroup>
100+
<Reference Include="System" />
101+
<Reference Include="System.Core" />
102+
<Reference Include="System.Xml.Linq" />
103+
<Reference Include="System.Data.DataSetExtensions" />
104+
<Reference Include="Microsoft.CSharp" />
105+
<Reference Include="System.Data" />
106+
<Reference Include="System.Deployment" />
107+
<Reference Include="System.Drawing" />
108+
<Reference Include="System.Net.Http" />
109+
<Reference Include="System.Windows.Forms" />
110+
<Reference Include="System.Xml" />
111+
</ItemGroup>
112+
<ItemGroup>
113+
<Compile Include="MainForm.cs">
114+
<SubType>Form</SubType>
115+
</Compile>
116+
<Compile Include="MainForm.Designer.cs">
117+
<DependentUpon>MainForm.cs</DependentUpon>
118+
</Compile>
119+
<Compile Include="MyThread.cs" />
120+
<Compile Include="Program.cs" />
121+
<Compile Include="Properties\AssemblyInfo.cs" />
122+
<EmbeddedResource Include="MainForm.resx">
123+
<DependentUpon>MainForm.cs</DependentUpon>
124+
</EmbeddedResource>
125+
<EmbeddedResource Include="Properties\Resources.resx">
126+
<Generator>ResXFileCodeGenerator</Generator>
127+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
128+
<SubType>Designer</SubType>
129+
</EmbeddedResource>
130+
<Compile Include="Properties\Resources.Designer.cs">
131+
<AutoGen>True</AutoGen>
132+
<DependentUpon>Resources.resx</DependentUpon>
133+
</Compile>
134+
<None Include="dashboard\CNAME">
135+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
136+
</None>
137+
<None Include="packages.config" />
138+
<None Include="Properties\Settings.settings">
139+
<Generator>SettingsSingleFileGenerator</Generator>
140+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
141+
</None>
142+
<Compile Include="Properties\Settings.Designer.cs">
143+
<AutoGen>True</AutoGen>
144+
<DependentUpon>Settings.settings</DependentUpon>
145+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
146+
</Compile>
147+
</ItemGroup>
148+
<ItemGroup>
149+
<None Include="App.config" />
150+
</ItemGroup>
151+
<ItemGroup>
152+
<EmbeddedResource Include="logo.ico" />
153+
</ItemGroup>
154+
<ItemGroup>
155+
<Content Include="clash.exe">
156+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
157+
</Content>
158+
<Content Include="dashboard\7.a322784ecacd704a28c6.js">
159+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
160+
</Content>
161+
<Content Include="dashboard\app.83f6698cbf7891b130e2.css">
162+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
163+
</Content>
164+
<Content Include="dashboard\app.99489dd938c57b6c22da.js">
165+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
166+
</Content>
167+
<Content Include="dashboard\core-js~app.b0e192aa2040bbc66d02.js">
168+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
169+
</Content>
170+
<Content Include="dashboard\index.html">
171+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
172+
</Content>
173+
<Content Include="dashboard\proxies.9022775a13e050c1509f.css">
174+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
175+
</Content>
176+
<Content Include="dashboard\proxies.993826afdebb153e0805.js">
177+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
178+
</Content>
179+
<Content Include="dashboard\react~app.6097406f382313d294e3.js">
180+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
181+
</Content>
182+
<Content Include="dashboard\report.html">
183+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
184+
</Content>
185+
<Content Include="dashboard\rules.1fba3c440f97fe0e3bb1.css">
186+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
187+
</Content>
188+
<Content Include="dashboard\rules.6f76e629fb04fefe588a.js">
189+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
190+
</Content>
191+
<Content Include="dashboard\runtime~app.dc7b6d94c7fe054b4bce.js">
192+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
193+
</Content>
194+
<Content Include="dashboard\vendors~chartjs.429cb8fa2f4d9b575993.js">
195+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
196+
</Content>
197+
<Content Include="dashboard\yacd-128.png">
198+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
199+
</Content>
200+
<Content Include="dashboard\yacd-64.png">
201+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
202+
</Content>
203+
<Content Include="dashboard\yacd.ico">
204+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
205+
</Content>
206+
<Content Include="icon.ico" />
207+
<Content Include="sysproxy.exe">
208+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
209+
</Content>
210+
</ItemGroup>
211+
<ItemGroup>
212+
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
213+
<Visible>False</Visible>
214+
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 和 x64%29</ProductName>
215+
<Install>true</Install>
216+
</BootstrapperPackage>
217+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
218+
<Visible>False</Visible>
219+
<ProductName>.NET Framework 3.5 SP1</ProductName>
220+
<Install>false</Install>
221+
</BootstrapperPackage>
222+
</ItemGroup>
223+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
224+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
225+
<PropertyGroup>
226+
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
227+
</PropertyGroup>
228+
<Error Condition="!Exists('packages\cef.redist.x64.73.1.13\build\cef.redist.x64.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\cef.redist.x64.73.1.13\build\cef.redist.x64.props'))" />
229+
<Error Condition="!Exists('packages\cef.redist.x86.73.1.13\build\cef.redist.x86.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\cef.redist.x86.73.1.13\build\cef.redist.x86.props'))" />
230+
<Error Condition="!Exists('packages\CefSharp.Common.73.1.130\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.Common.73.1.130\build\CefSharp.Common.props'))" />
231+
<Error Condition="!Exists('packages\CefSharp.Common.73.1.130\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.Common.73.1.130\build\CefSharp.Common.targets'))" />
232+
<Error Condition="!Exists('packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.props'))" />
233+
<Error Condition="!Exists('packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.targets'))" />
234+
</Target>
235+
<Import Project="packages\CefSharp.Common.73.1.130\build\CefSharp.Common.targets" Condition="Exists('packages\CefSharp.Common.73.1.130\build\CefSharp.Common.targets')" />
236+
<Import Project="packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.targets" Condition="Exists('packages\CefSharp.WinForms.73.1.130\build\CefSharp.WinForms.targets')" />
237+
</Project>

ClashNet.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29201.188
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClashNet", "ClashNet.csproj", "{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|x64.ActiveCfg = Debug|x64
21+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|x64.Build.0 = Debug|x64
22+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|x86.ActiveCfg = Debug|x86
23+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Debug|x86.Build.0 = Debug|x86
24+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|x64.ActiveCfg = Release|x64
27+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|x64.Build.0 = Release|x64
28+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|x86.ActiveCfg = Release|x86
29+
{1C7F05D8-0BC0-4DA1-91FB-BE292292EBEC}.Release|x86.Build.0 = Release|x86
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {7974D5BD-13D9-4B6A-AEA2-EB068DC1C8C9}
36+
EndGlobalSection
37+
EndGlobal

ClashNet_TemporaryKey.pfx

1.66 KB
Binary file not shown.

MainForm.Designer.cs

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)