Update Package

This commit is contained in:
luoyunchong
2021-06-11 20:12:24 +08:00
parent b7ae3cf42e
commit 66cd518872
8 changed files with 21 additions and 14 deletions

View File

@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<NoWarn>$(NoWarn);1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.5.1" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="5.5.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.1.4" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="6.1.4" />
</ItemGroup>
<ItemGroup>

View File

@ -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", "<22><>¼ģ<C2BC><C4A3>");
});
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", "<22><>¼ģ<C2BC><C4A3>");
});