Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSIX Building multi-project templates

$
0
0

I have a VSIX that is being distributed internally that provides some custom extensions, toolbox controls and project templates.  The project templates are setup pretty much following the directions in the"longer" way specified here, so they are built and packaged with the VSIX directly (i.e., it's not just a static zip file included in the package) and a couple of them required the addition of an IWizard implementation for some custom replacement keywords.  This has been working for a while, but recently I needed to modify one of the project templates to be multi-template and I just can't seem to get that to work.

I can't find any article talking about how to have this multi-project template work in a build (they've all been talking about manually zipping the files up), but as far as I can tell I have the structure setup correctly - a root vstemplate with a type of ProjectGroup with links to the individual project vstemplate files that exist in sub-directories.  One of the vstemplate files is identical the single project that used to work, and the other was one I created fresh following a similar pattern.

If I have the individual project vstemplate files set with a build action of "VSTemplate", each item listed in it won't be found - I get a warning likeMicrosoft.VsSDK.targets(889,5): warning : File 'Properties\Resources.resx' referenced from VSTemplate does not exist. on each file.  The warnings are all followed up by an error of: Microsoft.VsSDK.targets(965,5): error : An item with the same key has already been added.

If I change the build action of those vstemplate files to to None, like the rest of the zipped up content, then the warnings go away but the error doesn't.

Occasionally it'll compile without error (for some reason I haven't been able to fathom yet), but it outputs a corrupt zip file that can't be opened and is much smaller than expected (9k, expecting 30-40k).  Not sure what's going on here.

I'm sure it's something really simple, but I just can't seem to get it to work at all.  According to the article linked above, the SDK does support this but it just links to a page that showshow to do it manually, not as part of a build which I need to do.  Everything I've been able to find on it does the same thing - create the files and zip up manually.  I have a feeling I'm close and am missing something so brain-dead simple I just can't see it.  Is anyone else doing something like this?  Is it possible?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>