From 66cd518872dc0966440f21dd4193b884260e8ae2 Mon Sep 17 00:00:00 2001 From: luoyunchong Date: Fri, 11 Jun 2021 20:12:24 +0800 Subject: [PATCH] Update Package --- .../SwaggerUI_IndexStream_Knife4jUI_Demo.csproj | 6 +++--- .../IGeekFan.AspNetCore.Knife4jUI.csproj | 7 ++++++- test/Basic/Basic.csproj | 6 +++--- test/Basic/Startup.cs | 4 ++-- test/Knife4jUIDemo/Knife4jUIDemo.csproj | 2 +- test/Knife4jUIDemo/Startup.cs | 1 + test/WebSites/NSwag.Swagger.Knife4jUI/Startup.cs | 1 + test/WebSites/OAuth2Integration/OAuth2Integration.csproj | 8 ++++---- 8 files changed, 21 insertions(+), 14 deletions(-) diff --git a/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/SwaggerUI_IndexStream_Knife4jUI_Demo.csproj b/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/SwaggerUI_IndexStream_Knife4jUI_Demo.csproj index db679e1..baaeb80 100644 --- a/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/SwaggerUI_IndexStream_Knife4jUI_Demo.csproj +++ b/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/SwaggerUI_IndexStream_Knife4jUI_Demo.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj b/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj index 177e6a5..fcda3f7 100644 --- a/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj +++ b/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj @@ -19,8 +19,13 @@ 0.0.8.0 0.0.8.0 + true + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - + + + diff --git a/test/Basic/Basic.csproj b/test/Basic/Basic.csproj index b872dee..8b268e5 100644 --- a/test/Basic/Basic.csproj +++ b/test/Basic/Basic.csproj @@ -1,14 +1,14 @@  - netcoreapp3.0 + netcoreapp3.1 $(NoWarn);1591 true - - + + diff --git a/test/Basic/Startup.cs b/test/Basic/Startup.cs index 64c9007..503030d 100644 --- a/test/Basic/Startup.cs +++ b/test/Basic/Startup.cs @@ -103,13 +103,13 @@ namespace Basic app.UseSwaggerUI(c => { - c.RoutePrefix = ""; // serve the UI at root + c.RoutePrefix = "swagger"; // serve the UI at root c.SwaggerEndpoint("/v1/api-docs", "V1 Docs"); c.SwaggerEndpoint("/gp/api-docs", "µÇ¼ģ¿é"); }); app.UseKnife4UI(c => { - //c.RoutePrefix = ""; // serve the UI at root + c.RoutePrefix = ""; // serve the UI at root c.SwaggerEndpoint("/v1/api-docs", "V1 Docs"); c.SwaggerEndpoint("/gp/api-docs", "µÇ¼ģ¿é"); }); diff --git a/test/Knife4jUIDemo/Knife4jUIDemo.csproj b/test/Knife4jUIDemo/Knife4jUIDemo.csproj index 0e6231a..1a330bf 100644 --- a/test/Knife4jUIDemo/Knife4jUIDemo.csproj +++ b/test/Knife4jUIDemo/Knife4jUIDemo.csproj @@ -11,7 +11,7 @@ - + diff --git a/test/Knife4jUIDemo/Startup.cs b/test/Knife4jUIDemo/Startup.cs index 43e43a1..54c32a4 100644 --- a/test/Knife4jUIDemo/Startup.cs +++ b/test/Knife4jUIDemo/Startup.cs @@ -60,6 +60,7 @@ namespace Knife4jUIDemo app.UseSwaggerUI(c => { + c.RoutePrefix = "swagger"; // serve the UI at root c.SwaggerEndpoint("/v1/api-docs", "LinCms"); }); diff --git a/test/WebSites/NSwag.Swagger.Knife4jUI/Startup.cs b/test/WebSites/NSwag.Swagger.Knife4jUI/Startup.cs index b5f8dce..faf7abe 100644 --- a/test/WebSites/NSwag.Swagger.Knife4jUI/Startup.cs +++ b/test/WebSites/NSwag.Swagger.Knife4jUI/Startup.cs @@ -55,6 +55,7 @@ namespace NSwag.Swagger.Knife4jUI }); app.UseKnife4UI(c => { + c.RoutePrefix = ""; // serve the UI at root // c.RoutePrefix = "/docs"; // serve the UI at root c.SwaggerEndpoint("/swagger/v1/swagger.json", "V1 Docs"); }); diff --git a/test/WebSites/OAuth2Integration/OAuth2Integration.csproj b/test/WebSites/OAuth2Integration/OAuth2Integration.csproj index a2a2ce0..32ddaf2 100644 --- a/test/WebSites/OAuth2Integration/OAuth2Integration.csproj +++ b/test/WebSites/OAuth2Integration/OAuth2Integration.csproj @@ -1,16 +1,16 @@ - netcoreapp3.0 + netcoreapp3.1 - - - + + +