< Back

Publish-NuGetPackage

Sat Jan 18, 2020 6:44 pm

NAME Publish-NuGetPackage



SYNOPSIS

Publishes the contents of a runtime dependency package to a website, using NuGet.





SYNTAX

Publish-NuGetPackage [-PackageName] <String> [-PackageVersion] <String> [-PackageOutputPath] <String>

[-WebrootOutputPath] <String> [-DataOutputPath] <String> [<CommonParameters>]





DESCRIPTION

Publishes the contents of a runtime dependency package to a website, using NuGet.



Packages are expected to be NuGet-packages and contain any of the following folders:



- <package>/Webroot

- <package>/Data



All of the above are optional.



The following steps are performed during package publishing:



1. Check if the required package is cached locally.

1.1 If the package isn't found locally, it's installed from a registered package source, or from the

$PackageSource parameter.

2. Copy the contents of the "<package>\\Webroot"-folder to the "<WebrootOutputPath>".

3. Copy the contents of the "<package>\\Data"-folder to the "<DataOutputPath>".





PARAMETERS

-PackageName <String>

The name of the package to publish.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PackageVersion <String>

The exact version of the package to publish.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PackageOutputPath <String>

The location of the installed NuGet packages (e.g. "<solution root>/.pentia/runtime-dependencies/").



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WebrootOutputPath <String>

The path where the contents of "<package>\\Webroot" will be copied to.



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DataOutputPath <String>

The path where the contents of "<package>\\Data" will be copied to.



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS