1

I am trying to create a VSIX which will have a multi-project template.

I've followed the instructions in this msdn link and also included IWizard implementation for some manipulations.

I'm getting the below error while trying to build the solution:

Could not determine the FullName of the Assembly at "C:\Users\username\Documents\Visual Studio 2015\Projects\MyTemplateSolution\MyProjectWizard1\ProjectTemplates\CSharp\Cloud\TestTemplate.zip". Could not load file or assembly 'TestTemplate.zip' or one of its dependencies. An attempt was made to load a program with an incorrect format. MyProjectWizard1

The project structure looks like this : project structure

The vsixmanifest assets look like this :

<Assets> <Asset Type="Microsoft.VisualStudio.Assembly" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" AssemblyName="|%CurrentProject%;AssemblyName|" /> <Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="File" Path="ProjectTemplates" d:TargetPath="ProjectTemplates\CSharp\Cloud\TestTemplate.zip" /> </Assets>

template zip properties are below:
Build Action : Content
Copy To Output Directory : Copy Always
Include in VSIX : True

ak92
  • 41
  • 9
  • I think you have made a configuration mistake. Assemblies do not have `.zip` extensions, they are `.dll`. – Crowcoder May 06 '17 at 18:51
  • @Crowcoder take a look at the msdn link mentioned above, the templates are supposed to be zip files. – ak92 May 06 '17 at 18:54
  • I think the instructions are incomplete. I doubt the `d:Source` should be "Project" if you are referring to a .zip file. This is how I assign the asset when my template is a Project, not an exported zip: ` ` – Crowcoder May 06 '17 at 19:02
  • @Crowcoder When I include the c# item project in the same solution and add it as an asset to the VSIX project, I also get the same line as you. However, the .zip file generated by c# item project does not end up in item templates. Any idea why? – Willy Wonka Nov 15 '19 at 14:08
  • @Atizs I haven't done any vsix since I last commented but if I can refresh my memory I'll let you know. – Crowcoder Nov 15 '19 at 15:18

0 Answers0