How to Create a NuGet Package in C# with dotnet pack
Step-by-step guide to creating a NuGet package in C# using dotnet pack. Learn how to configure your .csproj, set package properties, and generate a .nupkg file.
In-depth C# and .NET tutorials covering structured logging with Serilog, building Roslyn analyzers, NuGet packaging, and other core language and tooling topics.
Showing 49–54 of 264 articles
Step-by-step guide to creating a NuGet package in C# using dotnet pack. Learn how to configure your .csproj, set package properties, and generate a .nupkg file.
How to implement HttpClient logging and observability in .NET 10 -- covering built-in ILogger integration, DelegatingHandler for custom request logging, OpenTelemetry tracing and metrics, and redacting sensitive headers in production.
Master logging in .NET with ILogger, structured logging, log levels, Serilog, and OpenTelemetry. Complete guide for .NET 9 and .NET 10 developers.
Understand what a NuGet package is, how the .nupkg format works, how the NuGet registry operates, and how package restore works in .NET projects.
Mock HttpClient C# in .NET 10: custom HttpMessageHandler stubs, DelegatingHandler interceptors, IHttpClientFactory wiring, and WebApplicationFactory tests.
A complete guide to HTTP/3 in .NET 10 -- enabling and using QUIC with HttpClient and ASP.NET Core, including version negotiation, TLS requirements, testing locally, and real-world performance implications.