< Back

Test-PlasterManifest

Sat Jan 18, 2020 7:05 pm

NAME Test-PlasterManifest



SYNOPSIS

Verifies that a plaster manifest file is a valid.





SYNTAX

Test-PlasterManifest [[-Path] <String[]>] [<CommonParameters>]





DESCRIPTION

Verifies that a plaster manifest file is a valid. If there are any errors, the details of the errors can be viewed

by using the Verbose parameter.





PARAMETERS

-Path <String[]>

Specifies a path to a plasterManifest.xml file.



Required? false

Position? 0

Default value "$pwd\\plasterManifest.xml"

Accept pipeline input? True (ByPropertyName, ByValue)

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

System.String

You can pipe the path to a plaster manifest to Test-PlasterManifest.





OUTPUTS

System.Xml.XmlDocument

Test-PlasterManifest returns a System.Xml.XmlDocument if the manifest is valid. Otherwise it returns $null.





NOTES









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



Test-PlasterManifest MyTemplate\\plasterManifest.xml



Verifies that the plasterManifest.xml file in the MyTemplate sub-directory is valid.

-------------------------- EXAMPLE 2 --------------------------



Test-PlasterManifest plasterManifest.xml -Verbose



Verifies that the plasterManifest.xml file in the current directory is valid. If there are any validation errors,

using -Verbose will display the details of those errors.



RELATED LINKS

Online Version: https://github.com/PowerShell/Plaster/b ... anifest.md

Invoke-Plaster https://github.com/PowerShell/Plaster/b ... Plaster.md

New-PlasterManifest https://github.com/PowerShell/Plaster/b ... anifest.md