I am creating multiproject visual studio template. I created VSIX package project and Wizard class library. Added those projects as assets in source.extension.vsixmanifest file of VSIX project. In Wizard class library I added a Windows Form, to collect user inputs. I need to, based on user inputs, add to generated solution from template additional projects. My solution vstemplate file looks like that:
<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
<TemplateData>
...
</TemplateData>
<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="App">
<ProjectTemplateLink ProjectName="$safeprojectname$.Core">
Core\Core.vstemplate
</ProjectTemplateLink>
...
</SolutionFolder>
</ProjectCollection>
</TemplateContent>
<WizardExtension>
...
</WizardExtension>
</VSTemplate>
But the probles is that not listed projects in that file not added to zip with template. So I thought, that I have two ways to deal with that:
- Add all my projects to VSTEMPLATE, and programmatically prevent some of them to add to solution.
- Somehow change build process and force visual studio to add contents to zip file during build.
I think that second way is more complicated. So my final ask is how to stop generating project from template from Wizzard?