Skip to content

Find NugetPackageInstallationFolder

Apostolis Bekiaris edited this page Oct 7, 2019 · 2 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Find-NugetPackageInstallationFolder

SYNOPSIS

Finds the installation path of a nuget package out of a predefined set of directories.

SYNTAX

Find-NugetPackageInstallationFolder [-Package] <String> [[-Version] <String>] [[-Locations] <String[]>]
 [<CommonParameters>]

DESCRIPTION

The lookup is done in "NuGetFallbackFolder","GlobalPackagesFolder","HttpCache","TempCache","PlugindCache" directories.

EXAMPLES

Example 1

PS C:\> Find-NugetPackageInstallationFolder -Package Xpand.XAF.Modules.AutoCommit
C:\Users\Tolis\.nuget\packages

Returns the installation path of the Xpand.XAF.Modules.AutoCommit package

PARAMETERS

-Locations

{{ Fill Locations Description }}

Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: NuGetFallbackFolder, GlobalPackagesFolder, HttpCache, TempCache, PlugindCache

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Package

{{ Fill Package Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Version

{{ Fill Version Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally
You can’t perform that action at this time.