< Back
New-NuGetPackage
Post
NAME New-NuGetPackage
SYNOPSIS
Creates a NuGet package file (.nupkg) from a .nuspec file.
SYNTAX
New-NuGetPackage [-ProjectFile] <FileInfo> [[-BasePath] <DirectoryInfo>] [[-OutputPath] <DirectoryInfo>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-ProjectFile <FileInfo>
The .nuspec, .fsproj, .csproj, or .vbproj file to create the NuGet package from.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BasePath <DirectoryInfo>
The filesystem path containing the NuGet package source files.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputPath <DirectoryInfo>
The target path where the generated NuGet package will be placed.
Required? false
Position? 3
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
SYNOPSIS
Creates a NuGet package file (.nupkg) from a .nuspec file.
SYNTAX
New-NuGetPackage [-ProjectFile] <FileInfo> [[-BasePath] <DirectoryInfo>] [[-OutputPath] <DirectoryInfo>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-ProjectFile <FileInfo>
The .nuspec, .fsproj, .csproj, or .vbproj file to create the NuGet package from.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BasePath <DirectoryInfo>
The filesystem path containing the NuGet package source files.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputPath <DirectoryInfo>
The target path where the generated NuGet package will be placed.
Required? false
Position? 3
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