Table of Contents

Hx_NetNugetPush

Publishes specified package files to the specified NuGet registry using the 'dotnet nuget push' command. If no package files are specified, the target tries to find them in the $Hx_NetBuild_ArtifactsDir and if package files are not found, the target executes the MSBuild 'Pack' target against the solution file found in the $Hx_NetBuild_ArtifactsDir to generate package files.

Properties

Hx_NetNugetPush_ArtifactsDir

A path to the NugetDeploy artifacts directory. Default is '$Hx_Run_ArtifactsDir/NetNugetPush'.

Hx_NetNugetPush_APIKey

The NuGet API key to push packages.

Hx_NetNugetPush_SourceURL

The source path to publish to (nuget.org etc.).

Hx_NetNugetPush_Version

The semantic version. It is passed as '/p:Version' property to the 'Pack' target. The pack target is called if the '@Hx_NetNugetPush_PackageFiles' is not specified. Default is a version retrieved from the '$Hx_ChangeLog_ArtifactsDir/semver.txt'.

Hx_NetNugetPush_ReleaseNotesFile

A text file with package release notes. It is passed as '/p:PackageReleaseNotes' property into the Pack target. Default is '$Hx_ChangeLog_ArtifactsDir/ReleaseNotes.txt'.

Items

Hx_NetNugetPush_PackageFiles

The package files to publish. If not specified, the *.nupkg and .snupkg files are searched in the 'bin' folders in the '$Hx_NetBuild_ArtifactsDir'. If files are not found, the target tries to find a '$Hx_NetBuild_ArtifactsDir/.sln' file and run the 'Pack' MSBuild target.