| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Updates version numbers across multiple project files.
Set-ProjectVersion [-VersionType <ProjectVersionIncrementKind>] [-NewVersion <string>] [-ModuleName <string>] [-Path <string>] [-ExcludeFolders <string[]>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]Updates version numbers in: C# projects (.csproj)PowerShell module manifests (.psd1)PowerShell build scripts that reference Invoke-ModuleBuild
Use -VersionType to increment one component, or -NewVersion to set an explicit version.
PS> Set-ProjectVersion -VersionType Minor -WhatIfPreviews the version update for all discovered project files.
PS> Set-ProjectVersion -NewVersion '2.1.0' -ModuleName 'MyModule' -Path 'C:\Projects'Updates only files related to the selected module name.
Path fragments (or folder names) to exclude from the search (in addition to default 'obj' and 'bin'). This matches against the full path, case-insensitively.
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOptional module name to filter updates to specific projects/modules.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSpecific version number to set (format: x.x.x or x.x.x.x).
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueReturns per-file update results when specified.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe root path to search for project files. Defaults to current directory.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe type of version increment: Major, Minor, Build, or Revision.
Type: Nullable`1
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
PowerForge.ProjectVersionUpdateResult
- None