Skip to content

ConvertTo PackageObject

apobekiaris edited this page Sep 4, 2020 · 8 revisions

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

ConvertTo-PackageObject

SYNOPSIS

Converts nuget.exe commands output.

SYNTAX

ConvertTo-PackageObject [[-item] <Object>] [<CommonParameters>]

DESCRIPTION

Converts nuget.exe commands output to a c# object with Id, Name properties.

EXAMPLES

Example 1

PS C:\> nuget list Xpand.XAF.Modules|ConvertTo-Object

Id                                     Version
--                                     -------
Xpand.XAF.Modules.AutoCommit           0.0.27
Xpand.XAF.Modules.CloneMemberValue     1.2.25

Convert the output of the nuget list command into well formed object.

PARAMETERS

-item

The nuget.exe output .

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
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

System.Object

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally