Skip to content

Get SamplerSourcePath

gaelcolas edited this page Jul 18, 2024 · 1 revision

Get-SamplerSourcePath

SYNOPSIS

Gets the project's source Path based on the ModuleManifest location.

SYNTAX

Get-SamplerSourcePath [-BuildRoot] <String> [<CommonParameters>]

DESCRIPTION

By finding the ModuleManifest of the project using Get-SamplerProjectModuleManifest this function assumes that the source folder is the parent folder of that module manifest. This allows the source folder to be src, source, or the Module name's, without hardcoding the name.

EXAMPLES

EXAMPLE 1

Get-SamplerSourcePath -BuildRoot 'C:\src\MyModule'

PARAMETERS

-BuildRoot

BuildRoot of the Sampler project to search the Module manifest from.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

NOTES

RELATED LINKS

Clone this wiki locally