Build, Package, Sign, and Publish a .NET Library to NuGet
In the modern development landscape, the use of NuGet packages has become a staple for code sharing and reuse in the .NET ecosystem. This session will provide a detailed exploration of the end-to-end process of building, packaging, and signing NuGet packages.
The session will cover the following key topics:
- Building NuGet Packages: Let’s see how you can structure your project for NuGet packaging, including best practices for project organization, creating reusable libraries, and incorporating necessary metadata.
- Packaging with NuGet: Step-by-step instructions on creating NuGet packages using tools like the .NET CLI and Visual Studio. We will discuss the intricacies of defining package dependencies, versioning strategies, and including relevant documentation and assets.
- Signing NuGet Packages: Techniques for digitally signing NuGet packages to ensure authenticity and integrity. We will explore certificate management, obtaining and using code-signing certificates, and automating the signing process in CI/CD pipelines.
- Publishing NuGet Packages: Methods for publishing packages to public and private NuGet repositories, managing package visibility, and maintaining version history. We will also cover the setup and use of Azure Artifacts for managing package feeds.
Attendees will see how we can do all this with hands-on demonstrations, showcasing effective strategies for building, packaging, and signing NuGet packages.
This talk is tailored for .NET developers, DevOps engineers, and software architects who are looking to optimize their use of NuGet packages and improve the security and reliability of their code distribution. Participants will leave with actionable knowledge and best practices to elevate their development workflows.
This session is rated level 300 -"More Advanced - Lots of Code".
Source Code
https://gist.github.com/jguadagno/b99bec48d4ecde8b4cec72b119fbdcfaSlide Deck
Video
Build and Ship It! at Cloud Summit Live
Reference Links
Interested in this Talk?
Would you like this talk at your event? You can send me an email. If you use Sessionize you can view the talk on Sessionize.Share on
Twitter Facebook LinkedIn RedditLike what you read?
Please consider sponsoring this blog.