设置为 en-US。 然后取消
+//对以下 NeutralResourceLanguage 特性的注释。 更新
+//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //主题特定资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //或应用程序资源字典中找到时使用)
+ ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //、应用程序或任何主题专用资源字典中找到时使用)
+)]
+
// 程序集的版本信息由下列四个值组成:
//
diff --git a/FastGithub.UI/Properties/Settings.settings b/FastGithub.UI/Properties/Settings.settings
index 3964565..033d7a5 100644
--- a/FastGithub.UI/Properties/Settings.settings
+++ b/FastGithub.UI/Properties/Settings.settings
@@ -1,7 +1,7 @@
-
+
-
+
\ No newline at end of file
diff --git a/FastGithub.sln b/FastGithub.sln
index 75fa240..0034d47 100644
--- a/FastGithub.sln
+++ b/FastGithub.sln
@@ -15,7 +15,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FastGithub.HttpServer", "Fa
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FastGithub.PacketIntercept", "FastGithub.PacketIntercept\FastGithub.PacketIntercept.csproj", "{701FF90C-E651-4E0B-AE7F-84D1F17DD178}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastGithub.UI", "FastGithub.UI\FastGithub.UI.csproj", "{650A08B6-080B-4011-9FB8-C3C93981FED2}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastGithub.UI", "FastGithub.UI\FastGithub.UI.csproj", "{5082061F-38D5-4F50-945E-791C85B9BDB5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -47,10 +47,10 @@ Global
{701FF90C-E651-4E0B-AE7F-84D1F17DD178}.Debug|Any CPU.Build.0 = Debug|Any CPU
{701FF90C-E651-4E0B-AE7F-84D1F17DD178}.Release|Any CPU.ActiveCfg = Release|Any CPU
{701FF90C-E651-4E0B-AE7F-84D1F17DD178}.Release|Any CPU.Build.0 = Release|Any CPU
- {650A08B6-080B-4011-9FB8-C3C93981FED2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {650A08B6-080B-4011-9FB8-C3C93981FED2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {650A08B6-080B-4011-9FB8-C3C93981FED2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {650A08B6-080B-4011-9FB8-C3C93981FED2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5082061F-38D5-4F50-945E-791C85B9BDB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5082061F-38D5-4F50-945E-791C85B9BDB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5082061F-38D5-4F50-945E-791C85B9BDB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5082061F-38D5-4F50-945E-791C85B9BDB5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/FastGithub/FastGithub.csproj b/FastGithub/FastGithub.csproj
index e87f10a..22f821f 100644
--- a/FastGithub/FastGithub.csproj
+++ b/FastGithub/FastGithub.csproj
@@ -20,6 +20,7 @@
+
@@ -44,4 +45,10 @@
+
+
+ PreserveNewest
+
+
+
diff --git a/FastGithub/Program.cs b/FastGithub/Program.cs
index de8ca5c..79fe264 100644
--- a/FastGithub/Program.cs
+++ b/FastGithub/Program.cs
@@ -2,8 +2,10 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Serilog;
+using Serilog.Sinks.Network;
using System;
using System.IO;
+using System.Net;
namespace FastGithub
{
@@ -26,8 +28,8 @@ namespace FastGithub
public static IHostBuilder CreateHostBuilder(string[] args)
{
return Host
- .CreateDefaultBuilder(args)
- .UseWindowsService()
+ .CreateDefaultBuilder(args)
+ .UseWindowsService()
.UseDefaultServiceProvider(c =>
{
c.ValidateOnBuild = false;
@@ -70,6 +72,7 @@ namespace FastGithub
.ReadFrom.Configuration(hosting.Configuration)
.Enrich.FromLogContext()
.WriteTo.Console(outputTemplate: template)
+ .WriteTo.UDPSink(IPAddress.Loopback, 38457)
.WriteTo.File(Path.Combine("logs", @"log.txt"), rollingInterval: RollingInterval.Day, outputTemplate: template);
});
});
diff --git a/FastGithub/Startup.cs b/FastGithub/Startup.cs
index 4bd6efd..be4b8f4 100644
--- a/FastGithub/Startup.cs
+++ b/FastGithub/Startup.cs
@@ -61,7 +61,8 @@ namespace FastGithub
appBuilder.UseRequestLogging();
appBuilder.UseHttpReverseProxy();
- appBuilder.UseRouting();
+ app.UseStaticFiles();
+ appBuilder.UseRouting();
appBuilder.UseEndpoints(endpoint => endpoint.MapFallback(context =>
{
context.Response.Redirect("https://github.com/dotnetcore/fastgithub");
diff --git a/FastGithub/wwwroot/cert.html b/FastGithub/wwwroot/cert.html
new file mode 100644
index 0000000..f8002b9
--- /dev/null
+++ b/FastGithub/wwwroot/cert.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+ 证书验证
+
+
+
+
+
+
git提示SSL certificate problem
+
+
+
+
\ No newline at end of file