Skip to content

New-PlasterManifest : Add a confirmation message before rewrite existing file #230

@LaurentDardenne

Description

@LaurentDardenne

This call rewrite existing file without ask a confirmation :

New-PlasterManifest -TemplateName Test

And may be add -force parameter.
The 'C:\temp\plasterManifest.xml' file is Read/only (Attrib +r)

New-PlasterManifest -TemplateName Test
Exception calling "Create" with "2" argument(s): "L'accès au chemin d'accès 'C:\temp\plasterManifest.xml' est refusé."
At C:\Program Files\WindowsPowerShell\Modules\Plaster\1.0.1\NewPlasterManifest.ps1:116 char:17
+ ...             $xmlWriter = [System.Xml.XmlWriter]::Create($resolvedPath ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : UnauthorizedAccessException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions