Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

How can I avoid Visual Studio creating a directory when adding Project from a custom Template ?

$
0
0

Hi,

I have a template where i have two projects 

Lets say Project1 , Project 2

when i import the template I have created into Visual Studio and create a new project the .sln file is created one directory below the startup project 

what i was after is that the if i create a directory structure 

Format\TestFormat\TestFormat <------ this is the first project

Format\TestFormat\TestFormatApplication <--- second project

the .sln file get created in Format directory whereas I want it to be created in the Format\TestFormat\ directory. 

How can i do this ?

Attached is the .vstemplate I am using

<VSTemplateVersion="2.0.0"Type="ProjectGroup"xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"><TemplateData><Name>TestFormat</Name><Description>An example of a multi-project template</Description><ProjectType>CSharp</ProjectType></TemplateData><TemplateContent><ProjectCollection><ProjectTemplateLinkProjectName="$safeprojectname$">
				TestFormat\MyTemplate.vstemplate</ProjectTemplateLink><ProjectTemplateLinkProjectName="$safeprojectname$Application">
				TestFormatApplication\MyTemplate.vstemplate</ProjectTemplateLink></ProjectCollection></TemplateContent></VSTemplate>

thanks


Viewing all articles
Browse latest Browse all 3509

Trending Articles



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