Skip to main content

@nx-dotnet/core:nuget-reference

Nuget Reference#

Add a nuget reference to a .NET project

Options#

project#

  • (string): The project to which the reference is added.

packageName#

  • (string): Which package should be added?

version#

  • (string): The package version to add.

framework#

  • (string): Adds a package reference only when targeting a specific framework.

packageDirectory#

prerelease#

  • (boolean): Allows prerelease packages to be installed. Available since .NET Core 5 SDK

source#

  • (string): The URI of the NuGet package source to use during the restore operation.

noRestore#

  • (boolean): Adds a package reference without performing a restore preview and compatibility check.

allowVersionMismatch#

  • (boolean): Ignores single version principle for this package across all apps in the workspace