Book Image

.NET Standard 2.0 Cookbook

By : Fiqri Ismail
Book Image

.NET Standard 2.0 Cookbook

By: Fiqri Ismail

Overview of this book

The .NET Standard is a standard that represents a set of APIs that all .NET platforms have to implement, making it easy for developers to access and use one common library for their development needs. This book begins with a quick refresher, helping you understand the mechanics of the new standard and offering insight into how it works. You’ll explore the core library concepts, such as working with collections, configurations, I/O, security, and multithreading. You’ll explore the iOS and Android libraries of Xamarin and we’ll guide you through creating a .NET Standard 2.0 library, which you’ll use with both Android and iOS applications. In the final chapters, you’ll learn the various debugging and diagnostics tools to deliver quality libraries and create a NuGet package of the .NET Standard 2.0 library. By the end of this book, you’ll be able to expand your current workflow to various .NET flavors and have the essential skills to create a .NET Standard 2.0 library from scratch to package and deliver it to the world.
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Submitting the package to NuGet package manager


In this recipe, we will look at how to submit our NuGet package created in the previous recipe. To submit a package to NuGet, you will be required to sign in. It's easy if you have a Microsoft Live account with you, otherwise you can always create a nuget.org account at the NuGet site itself.

Getting ready

Make sure you have completed the previous recipe and created a NuGet package. Also, it's handy to have a Microsoft Live account to make things smoother during the login process, but yes, you can always create a NuGet account.

How to do it...

  1. Open your preferred browser.
  2. In the address bar, type www.nuget.org, and press Enter.
  1. Now, click on the Sign in link in the top right-hand corner:
  1. Use your Microsoft account or create a NuGet account and then sign in:
  1. After a successful sign in, click the Upload link.
  1. Now, in this screen, you can drag and drop your package or you can browse for the package:
  1. Now, click on the Browse... button and locate your package...