This is documentation for v10, which is no longer actively maintained.
For up-to-date documentation, see the latest version.

Installation

Before we can start we have to install the package via NuGet. There are many ways to install a NuGet package but we focus here on the most common CLI commands for both .NET Core and .NET Framework.

For .NET Core we use the dotnet CLI, which is perhaps the preferred way doing this.

dotnet add package GreenDonut

And for .NET Framework we still use the following line.

Install-Package GreenDonut

People who prefer a UI to install packages might want to use the NuGet Package Manager, which is provided by Visual Studio.