MESApplication/Startup.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
MESApplication/Startup.cs
@@ -4,6 +4,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Swashbuckle.AspNetCore.SwaggerUI; using System.Reflection; namespace MESApplication; @@ -35,6 +36,9 @@ c.SwaggerDoc("v1", new OpenApiInfo { Title = "MESApplication.Api", Version = "v1" }); var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); c.IncludeXmlComments(xmlPath, true); }); //配置JSON.NET