Adding a Folder to Multiple Projects Visual Studio 2010 Template

I am working on a full vertical stack template for Visual Studio (it is on Github if you want to help: https://github.com/Adron/infrastructure

My problem is that I could not add the assembly folder to the root of the solution. In separate project templates (which I have three in the general template of the parent solution), there are many separate elements, such as files and folders. But when I try to add something similar to this parent template, it reports that it is not valid in this XML schema / file.

My current XML solution file is as follows:

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="ProjectGroup"> <TemplateData> <Name>ASP.NET MVC 3 + Razor + Machine.Specifications Infrastructure Solution</Name> <Description>This Visual Studio Template provides the following pieces for getting a kick start when building well designed web sites using good patterns.</Description> <EnableEditOfLocationField>true</EnableEditOfLocationField> <EnableLocationBrowseButton>true</EnableLocationBrowseButton> <ProvideDefaultName>true</ProvideDefaultName> <Icon>Icon.ico</Icon> <ProjectType>CSharp</ProjectType> <SortOrder>1000</SortOrder> <CreateNewFolder>true</CreateNewFolder> <DefaultName>Infrastructure</DefaultName> <LocationField>Enabled</LocationField> <PreviewImage>Preview.png</PreviewImage> </TemplateData> <TemplateContent> <ProjectCollection> <ProjectTemplateLink ProjectName="Infrastructure.Web">Web\MyTemplate.vstemplate</ProjectTemplateLink> <ProjectTemplateLink ProjectName="Infrastructure.Specifications">Specifications\MyTemplate.vstemplate</ProjectTemplateLink> <ProjectTemplateLink ProjectName="Infrastructure.Data">Data\MyTemplate.vstemplate</ProjectTemplateLink> </ProjectCollection> </TemplateContent> </VSTemplate> 

Any ideas on how to add folders or individual assets? Thanks...

+7
source share
1 answer

Here is part of my solution, which includes the elements of a solution:

 Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8C6F0281-2022-4F98-A856-590C5FE26BC1}" ProjectSection(SolutionItems) = preProject ..\Build.bat = ..\Build.bat ..\Build.proj = ..\Build.proj ..\ClickToBuild.bat = ..\ClickToBuild.bat ..\DeployStage.bat = ..\DeployStage.bat LocalTestRun.testrunconfig = LocalTestRun.testrunconfig Performance1.psess = Performance1.psess EndProjectSection EndProject 

Does it help?

+1
source

All Articles