We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d8465e commit 91b1974Copy full SHA for 91b1974
2 files changed
ProjectTemplates/AspNetCore.WebApi/ReferenceProject/ReferenceProject/Configuration/DependenciesConfig.cs
@@ -18,7 +18,10 @@ public static IServiceCollection AddSwagger(this IServiceCollection services)
18
// Set the comments path for the Swagger JSON and UI.
19
var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
20
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
21
- c.IncludeXmlComments(xmlPath);
+ if (File.Exists(xmlPath))
22
+ {
23
+ c.IncludeXmlComments(xmlPath);
24
+ }
25
});
26
27
return services;
ProjectTemplates/AspNetCore.WebApi/ReferenceProject/ReferenceProject/Controllers/ProductsController.cs
@@ -9,9 +9,6 @@
9
10
namespace ReferenceProject.Controllers
11
{
12
- /// <summary>
13
- /// Products Controller
14
- /// </summary>
15
[Route("[controller]")]
16
[ApiController]
17
[Produces("application/json")]
0 commit comments