Skip to content

Instantly share code, notes, and snippets.

View cantis's full-sized avatar

Evan Young cantis

  • Winnipeg, MB
View GitHub Profile
@cantis
cantis / CodespacesDevelopment.md
Last active April 22, 2023 18:12
Notes on Github Codespaces Development
@cantis
cantis / CSharpAPINotes.md
Created January 25, 2023 17:05
Notes on writing C# APIs

API Documentation: Generation from XML Comments

Note: This applies to .net 6 LTS

  1. Turn on XML Documentation generation in the project in Properties-Build-Output select Documentation File
  2. Modify the AddSwaggerGen line in the program.cs file
builder.Services.AddSwaggerGen( c =>
    c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory,
        $"{Assembly.GetExecutingAssembly().GetName().Name}.xml")));