diff --git a/FastGithub.Configuration/FastGithub.Configuration.csproj b/FastGithub.Configuration/FastGithub.Configuration.csproj index c18dd9e7..f2e903d5 100644 --- a/FastGithub.Configuration/FastGithub.Configuration.csproj +++ b/FastGithub.Configuration/FastGithub.Configuration.csproj @@ -1,8 +1,12 @@  + + net8.0 + + - - + + diff --git a/FastGithub.DomainResolve/DnsClient.cs b/FastGithub.DomainResolve/DnsClient.cs index e96bc886..6e521cf5 100644 --- a/FastGithub.DomainResolve/DnsClient.cs +++ b/FastGithub.DomainResolve/DnsClient.cs @@ -163,7 +163,7 @@ private async Task> LookupAsync(IPEndPoint dns, DnsEndPoint end { if (this.dnsLookupCache.TryGetValue>(key, out var value)) { - return value; + return value!; } var result = await this.LookupCoreAsync(dns, endPoint, fastSort, cancellationToken); return this.dnsLookupCache.Set(key, result.Addresses, result.TimeToLive); diff --git a/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj b/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj index 7ae4c7a0..8de11b58 100644 --- a/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj +++ b/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj @@ -1,9 +1,13 @@  + + net8.0 + + - - + + diff --git a/FastGithub.DomainResolve/IPAddressService.cs b/FastGithub.DomainResolve/IPAddressService.cs index 95ad36fb..539dead0 100644 --- a/FastGithub.DomainResolve/IPAddressService.cs +++ b/FastGithub.DomainResolve/IPAddressService.cs @@ -95,7 +95,7 @@ private async Task GetAddressElapsedAsync(IPEndPoint endPoint, C { if (this.addressElapsedCache.TryGetValue(endPoint, out var addressElapsed)) { - return addressElapsed; + return addressElapsed!; } var stopWatch = Stopwatch.StartNew(); diff --git a/FastGithub.FlowAnalyze/FastGithub.FlowAnalyze.csproj b/FastGithub.FlowAnalyze/FastGithub.FlowAnalyze.csproj index 65cbe964..59baa239 100644 --- a/FastGithub.FlowAnalyze/FastGithub.FlowAnalyze.csproj +++ b/FastGithub.FlowAnalyze/FastGithub.FlowAnalyze.csproj @@ -1,5 +1,9 @@ + + net8.0 + + diff --git a/FastGithub.Http/FastGithub.Http.csproj b/FastGithub.Http/FastGithub.Http.csproj index e621b9ac..0a5cca2a 100644 --- a/FastGithub.Http/FastGithub.Http.csproj +++ b/FastGithub.Http/FastGithub.Http.csproj @@ -1,5 +1,9 @@  + + net8.0 + + diff --git a/FastGithub.HttpServer/FastGithub.HttpServer.csproj b/FastGithub.HttpServer/FastGithub.HttpServer.csproj index 339d9569..324fbbb7 100644 --- a/FastGithub.HttpServer/FastGithub.HttpServer.csproj +++ b/FastGithub.HttpServer/FastGithub.HttpServer.csproj @@ -2,11 +2,12 @@ true + net8.0 - + diff --git a/FastGithub.HttpServer/HttpMiddlewares/HttpProxyPacMiddleware.cs b/FastGithub.HttpServer/HttpMiddlewares/HttpProxyPacMiddleware.cs index 3bf01b42..f896ca46 100644 --- a/FastGithub.HttpServer/HttpMiddlewares/HttpProxyPacMiddleware.cs +++ b/FastGithub.HttpServer/HttpMiddlewares/HttpProxyPacMiddleware.cs @@ -37,7 +37,7 @@ public async Task InvokeAsync(HttpContext context, RequestDelegate next) { var proxyPac = this.CreateProxyPac(context.Request.Host); context.Response.ContentType = "application/x-ns-proxy-autoconfig"; - context.Response.Headers.Add("Content-Disposition", $"attachment;filename=proxy.pac"); + context.Response.Headers["Content-Disposition"] = $"attachment;filename=proxy.pac"; await context.Response.WriteAsync(proxyPac); } else diff --git a/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj b/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj index d4128bc6..c01fcdac 100644 --- a/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj +++ b/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj @@ -2,6 +2,7 @@ true + net8.0 diff --git a/FastGithub.UI/FastGithub.UI.csproj b/FastGithub.UI/FastGithub.UI.csproj index ed3d783a..55247db1 100644 --- a/FastGithub.UI/FastGithub.UI.csproj +++ b/FastGithub.UI/FastGithub.UI.csproj @@ -26,9 +26,10 @@ all - + all + diff --git a/FastGithub/FastGithub.csproj b/FastGithub/FastGithub.csproj index 57ea9e41..75b30210 100644 --- a/FastGithub/FastGithub.csproj +++ b/FastGithub/FastGithub.csproj @@ -6,22 +6,23 @@ MIT app.manifest true + net8.0 - - - + + + - - - - + + + + diff --git a/FastGithub/ProductionVersion.cs b/FastGithub/ProductionVersion.cs index 2b8fb70d..c16e49b6 100644 --- a/FastGithub/ProductionVersion.cs +++ b/FastGithub/ProductionVersion.cs @@ -94,7 +94,7 @@ public override string ToString() /// public static ProductionVersion Parse(string productionVersion) { - const string VERSION = @"^\d+\.(\d+.){0,2}\d+"; + const string VERSION = @"^\d+\.(\d+\.){0,2}\d+(?=\+[0-9a-f].)?"; var verion = Regex.Match(productionVersion, VERSION).Value; var subVersion = productionVersion[verion.Length..]; return new ProductionVersion(Version.Parse(verion), subVersion);