Add a NuGet package reference to .Net Core project using the following command:

dotnet add package <PACKAGE_NAME> [-v <VERSION>]

Where:

PACKAGE_NAME The NuGet package to be added
VERSION If the optional -v was used, the target VERSION of the NuGet package.

Example without the -v option

dotnet add package Microsoft.ApplicationInsights

Example with the -v option

dotnet add package Microsoft.ApplicationInsights -v 2.10.0