-
Notifications
You must be signed in to change notification settings - Fork 47
Get SamplerModuleRootPath
gaelcolas edited this page Jul 18, 2024
·
1 revision
Gets the absolute ModuleRoot path (the psm1) of a module.
Get-SamplerModuleRootPath [-ModuleManifestPath] <String>
[<CommonParameters>]
This function reads the module manifest (.psd1) and if the ModuleRoot property is defined, it will resolve its absolute path based on the ModuleManifest's Path.
If no ModuleRoot is defined, then this function will return $null.
Get-SamplerModuleRootPath -ModuleManifestPath C:\src\MyModule\output\MyModule\2.3.4\MyModule.psd1
# C:\src\MyModule\output\MyModule\2.3.4\MyModule.psm1
The path (relative to the current working directory or absolute) to the ModuleManifest to read to find the ModuleRoot.
Type: String
Parameter Sets: (All)
Aliases: Path
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Add Sample
- Convert SamplerHashtableToString
- Get BuiltModuleVersion
- Get ClassBasedResourceName
- Get CodeCoverageThreshold
- Get MofSchemaName
- Get OperatingSystemShortName
- Get PesterOutputFileFileName
- Get Psm1SchemaName
- Get SamplerAbsolutePath
- Get SamplerBuildVersion
- Get SamplerBuiltModuleBase
- Get SamplerBuiltModuleManifest
- Get SamplerCodeCoverageOutputFile
- Get SamplerCodeCoverageOutputFileEncoding
- Get SamplerModuleInfo
- Get SamplerModuleRootPath
- Get SamplerProjectName
- Get SamplerSourcePath
- Invoke SamplerGit
- Merge JaCoCoReport
- New SampleModule
- New SamplerJaCoCoDocument
- New SamplerPipeline
- Out SamplerXml
- Set SamplerPSModulePath
- Split ModuleVersion
- Update JaCoCoStatistic