diff --git a/Nano.Data/Nano.Data.csproj b/Nano.Data/Nano.Data.csproj index 696c8f2..66f41c2 100644 --- a/Nano.Data/Nano.Data.csproj +++ b/Nano.Data/Nano.Data.csproj @@ -25,25 +25,25 @@ - + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - + + + + + + + - + diff --git a/Nano.Eventing/Nano.Eventing.csproj b/Nano.Eventing/Nano.Eventing.csproj index e8cbdcd..f9b5036 100644 --- a/Nano.Eventing/Nano.Eventing.csproj +++ b/Nano.Eventing/Nano.Eventing.csproj @@ -23,9 +23,9 @@ - - - + + + diff --git a/Nano.Logging/Nano.Logging.csproj b/Nano.Logging/Nano.Logging.csproj index 62216aa..4d75845 100644 --- a/Nano.Logging/Nano.Logging.csproj +++ b/Nano.Logging/Nano.Logging.csproj @@ -23,7 +23,7 @@ - + diff --git a/Nano.Models/Nano.Models.csproj b/Nano.Models/Nano.Models.csproj index 23a79af..36362f4 100644 --- a/Nano.Models/Nano.Models.csproj +++ b/Nano.Models/Nano.Models.csproj @@ -24,7 +24,7 @@ - + diff --git a/Nano.Security/Nano.Security.csproj b/Nano.Security/Nano.Security.csproj index 4764118..d4e3dd4 100644 --- a/Nano.Security/Nano.Security.csproj +++ b/Nano.Security/Nano.Security.csproj @@ -22,10 +22,10 @@ - - - - + + + + diff --git a/Nano.Web/Extensions/ServiceCollectionExtensions.cs b/Nano.Web/Extensions/ServiceCollectionExtensions.cs index 16f7af8..923d626 100644 --- a/Nano.Web/Extensions/ServiceCollectionExtensions.cs +++ b/Nano.Web/Extensions/ServiceCollectionExtensions.cs @@ -8,12 +8,12 @@ using System.Text.Json.Serialization.Metadata; using System.Threading.Tasks; using System.Xml.XPath; +using Asp.Versioning; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.AspNetCore.ResponseCompression; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -311,9 +311,9 @@ private static IServiceCollection AddVersioning(this IServiceCollection services if (appOptions == null) throw new ArgumentNullException(nameof(appOptions)); - ApiVersion.TryParse(appOptions.Version, out var apiVersion); + ApiVersionParser.Default.TryParse(appOptions.Version, out var apiVersion); - return services + services .AddApiVersioning(x => { x.ReportApiVersions = true; @@ -321,6 +321,8 @@ private static IServiceCollection AddVersioning(this IServiceCollection services x.AssumeDefaultVersionWhenUnspecified = true; x.ApiVersionReader = new HeaderApiVersionReader("x-api-version"); }); + + return services; } private static IServiceCollection AddCompression(this IServiceCollection services) { diff --git a/Nano.Web/Nano.Web.csproj b/Nano.Web/Nano.Web.csproj index d558d8e..f01af21 100644 --- a/Nano.Web/Nano.Web.csproj +++ b/Nano.Web/Nano.Web.csproj @@ -37,17 +37,17 @@ + + - - - - - - + + + + diff --git a/NanoCore.nuspec b/NanoCore.nuspec index 88d5ae8..2825baf 100644 --- a/NanoCore.nuspec +++ b/NanoCore.nuspec @@ -2,7 +2,7 @@ NanoCore - 7.2.37 + 7.2.38 Nano Core Rapidly built and deploy rich .NET 7.0 applications. Configuration, Security, Logging, Data, Hosting, Docs, Localization, Versioning, Api, Error-Handling, and much more. The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar. @@ -16,12 +16,13 @@ https://github.com/Nano-Core - - Cleaned up project references and NuGets. + - Added setting more identity token expiration. + - Updated all NuGets. - + @@ -34,47 +35,47 @@ - + - - + + - - - - - - - - - - - + + + + + + + + + + + - - + + - - - + + + - - - - - - + + + + + +