locked
Weird folder structure when using a project template ? RRS feed

  • Question

  • User1253338400 posted

    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

    <VSTemplate Version="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>
    			<ProjectTemplateLink ProjectName="$safeprojectname$">
    				TestFormat\MyTemplate.vstemplate
    			</ProjectTemplateLink>
    			<ProjectTemplateLink ProjectName="$safeprojectname$Application">
    				TestFormatApplication\MyTemplate.vstemplate
    			</ProjectTemplateLink>	
    		</ProjectCollection>
    	</TemplateContent>
    </VSTemplate>

    thanks

    Monday, July 7, 2014 2:38 AM

Answers

  • User-166373564 posted

    HI,

    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 

    In our Configuring and deploying forum, we deal with relevant issues about configuring and deploying ASP.NET applications - web.config, \bin, etc.

    According to your description above, I think this issue is related to your Visual Studio, it's recommended to get help from Visual Studio and Visual Web Developer Express forum - Discussions on using VS and VWD Express for ASP.NET development.

    # Visual Studio and Visual Web Developer Express

    http://forums.asp.net/1213.aspx/1?Visual+Studio+and+Visual+Web+Developer+Express

    Regards

    Angie 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 9, 2014 1:32 AM

All replies

  • User-166373564 posted

    HI,

    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 

    In our Configuring and deploying forum, we deal with relevant issues about configuring and deploying ASP.NET applications - web.config, \bin, etc.

    According to your description above, I think this issue is related to your Visual Studio, it's recommended to get help from Visual Studio and Visual Web Developer Express forum - Discussions on using VS and VWD Express for ASP.NET development.

    # Visual Studio and Visual Web Developer Express

    http://forums.asp.net/1213.aspx/1?Visual+Studio+and+Visual+Web+Developer+Express

    Regards

    Angie 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 9, 2014 1:32 AM
  • User1253338400 posted

    Ok  no worries 

    cheers

    Wednesday, July 9, 2014 6:04 PM