ligershark / template-builder

This project will output a NuGet package which can be used to help create Visual Studio Item Templates and Project templates
Other
42 stars 28 forks source link

Installation of TemplateBuilder fails when the vsixmanifest does not contain the Assets section #23

Closed tibel closed 10 years ago

tibel commented 10 years ago

This happens when you install TemplateBuilder to a new VSIX Project.

Output from package manager console:

*********** Adding template-builder
    Adding item template asset tag to .vsixmanifest file C:\xyz\source.extension.vsixmanifest
Method invocation failed because [System.String] does not contain a method named 'AppendChild'.
At C:\xyz\packages\TemplateBuilder.1.0.3.21-beta\tools\template-builder.psm1:183 char:9
+         $vsixXml.PackageManifest.Assets.AppendChild($newElement)
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    Adding project template asset tag to .vsixmanifest file C:\xyz\source.extension.vsixmanifest
Method invocation failed because [System.String] does not contain a method named 'AppendChild'.
At C:\xyz\packages\TemplateBuilder.1.0.3.21-beta\tools\template-builder.psm1:210 char:9
+         $vsixXml.PackageManifest.Assets.AppendChild($newElement)
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    TemplateBuilder has been installed into project [C:\xyz\xyz.csproj]
sayedihashimi commented 10 years ago

Thanks for the issue. I've fixed it and it will be released in the next version (1.0.3.40-beta). I'll probably release it today or tomorrow after some other changes.