< Back
Get-BuildItem
Post
NAME Get-BuildItem
SYNOPSIS
Get source items.
SYNTAX
Get-BuildItem [-Type] <String> [-BuildInfo] <PSObject> [-ExcludeClass] [<CommonParameters>]
DESCRIPTION
Get items from the source tree which will be consumed by the build process.
This function centralises the logic required to enumerate files and folders within a project.
PARAMETERS
-Type <String>
Gets items by type.
ShouldMerge - *.ps1 files from enum*, class*, priv*, pub* and InitializeModule if present.
Static - Files which are not within a well known top-level folder. Captures help content in en-US,
format files, configuration files, etc.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildInfo <PSObject>
BuildInfo is used to determine the source path.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ExcludeClass [<SwitchParameter>]
Exclude script files containing PowerShell classes.
Required? false
Position? named
Default value False
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.IO.FileInfo
System.IO.DirectoryInfo
RELATED LINKS
SYNOPSIS
Get source items.
SYNTAX
Get-BuildItem [-Type] <String> [-BuildInfo] <PSObject> [-ExcludeClass] [<CommonParameters>]
DESCRIPTION
Get items from the source tree which will be consumed by the build process.
This function centralises the logic required to enumerate files and folders within a project.
PARAMETERS
-Type <String>
Gets items by type.
ShouldMerge - *.ps1 files from enum*, class*, priv*, pub* and InitializeModule if present.
Static - Files which are not within a well known top-level folder. Captures help content in en-US,
format files, configuration files, etc.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildInfo <PSObject>
BuildInfo is used to determine the source path.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ExcludeClass [<SwitchParameter>]
Exclude script files containing PowerShell classes.
Required? false
Position? named
Default value False
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.IO.FileInfo
System.IO.DirectoryInfo
RELATED LINKS