【发布时间】:2019-10-01 23:00:24
【问题描述】:
我正在安装一个新的 asp.net core 3.0
它使用services.AddControllers(); 而不是services.addMvc();
及其使用
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
而不是
app.UserMvc();
我尝试添加swashbuckle.aspnetcore 以生成其招摇的用户界面。
它不工作。
swashbuckle.aspnetcore 已经支持 asp.net core 3.0 了吗?
【问题讨论】:
标签: c# swagger swagger-ui swashbuckle asp.net-core-3.0