< Back

Get-PSModuleManifest

Sun Jan 12, 2020 6:46 pm

NAME Get-PSModuleManifest



SYNOPSIS

Get the PowerShell module manifest for a project





SYNTAX

Get-PSModuleManifest [[-Path] <Object>] [<CommonParameters>]





DESCRIPTION

Get the PowerShell module manifest for a project



Evaluates based on the following scenarios:

* Subfolder with the same name as the current folder with a psd1 file in it

* Subfolder with a <subfolder-name>.psd1 file in it

* Current folder with a <currentfolder-name>.psd1 file in it

+ Subfolder called "Source" or "src" (not case-sensitive) with a psd1 file in it



Note: This does not handle paths in the format Folder\\ModuleName\\Version\\





PARAMETERS

-Path <Object>

Path to project root. Defaults to the current working path



Required? false

Position? 1

Default value $PWD.Path

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

System.String





NOTES





We assume you are in the project root, for several of the fallback options



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PSModuleManifest















RELATED LINKS

https://github.com/RamblingCookieMonster/BuildHelpers

Get-BuildVariable

Set-BuildEnvironment

about_BuildHelpers