YUNOVA · C#

Module 14: Building and shipping .NET apps

Notes for offline study · 30 November 2026

Logging and configuration in .NET

Key points

  • ILogger<T> writes logs at levels from Trace to Critical.
  • appsettings.json, environment variables and secrets feed configuration.
  • The options pattern binds config sections to typed classes.

JWT authentication in ASP.NET Core

Key points

  • A JWT carries signed claims about the user.
  • AddAuthentication().AddJwtBearer validates incoming tokens.
  • [Authorize] protects endpoints that need a valid token.

Docker for .NET applications

Key points

  • A Dockerfile builds and packages a .NET app into an image.
  • Multi-stage builds use the SDK image to build and the runtime image to run.
  • docker run starts a container from the image.

Creating and publishing NuGet packages

Key points

  • dotnet pack builds a .nupkg from a project.
  • Package metadata like ID, version and authors goes in the .csproj.
  • dotnet nuget push uploads the package to a feed.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.