先在api右键属性
在Program里面:
builder.Services.AddSwaggerGen(a =>
{
string path = AppDomain.CurrentDomain.BaseDirectory + "Demo.WebApi.xml";
a.IncludeXmlComments(path, true);
});
先在api右键属性
在Program里面:
builder.Services.AddSwaggerGen(a =>
{
string path = AppDomain.CurrentDomain.BaseDirectory + "Demo.WebApi.xml";
a.IncludeXmlComments(path, true);
});