| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Retrieves project version information from .csproj, .psd1, and build scripts.
Get-ProjectVersion [-ModuleName <string>] [-Path <string>] [-ExcludeFolders <string[]>] [<CommonParameters>]Scans the specified path for: .csproj files.psd1 filesPowerShell build scripts (*.ps1) that contain Invoke-ModuleBuild and returns one record per discovered version entry.
This is useful for multi-project repositories where you want to quickly verify version alignment across projects/modules.
PS> Get-ProjectVersionReturns entries for discovered .csproj/.psd1/build scripts under the current folder.
PS> Get-ProjectVersion -ModuleName 'MyModule' -Path 'C:\Projects'Useful when a repository contains multiple modules/projects but you need only one.
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 .csproj and .psd1 results.
Type: String
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: 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.ProjectVersionInfo
- None