支持.net 6,并处理分组显示 description的问题。

This commit is contained in:
luoyunchong
2021-11-10 23:08:20 +08:00
parent 089c238126
commit 233268c5e3
14 changed files with 112 additions and 15 deletions

View File

@ -11,6 +11,7 @@
</PropertyGroup>
<ItemGroup>
<!--<PackageReference Include="IGeekFan.AspNetCore.Knife4jUI" Version="0.0.9" />-->
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.4" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.9" />
</ItemGroup>

View File

@ -1,4 +1,4 @@
using IGeekFan.AspNetCore.Knife4jUI;
using IGeekFan.AspNetCore.Knife4jUI;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Controllers;
@ -28,7 +28,7 @@ namespace Knife4jUIDemo
c.SwaggerDoc("v1", new OpenApiInfo { Title = "API V1", Version = "v1" });
c.AddServer(new OpenApiServer()
{
Url = "",
//Url = "http://localhost:81/admin/",
Description = "vvv"
});
c.CustomOperationIds(apiDesc =>