The simplest way to add a new package reference in a .net core project is to use the following command:

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

Where:

Parameter Description
PACKAGE_NAME The name of the package name to be added as reference.
VERSION The specific version of the package.