Codespaces provides a cloud based version of VSCode that is attached to a github repository. The environment can be configured to allow you to run your code online.
Note: This applies to .net 6 LTS
- Turn on XML Documentation generation in the project in Properties-Build-Output select Documentation File
- Modify the
AddSwaggerGen
line in theprogram.cs
file
builder.Services.AddSwaggerGen( c =>
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory,
$"{Assembly.GetExecutingAssembly().GetName().Name}.xml")));