Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Using Project in solution TEmplate
 

Using Project in solution TEmplate

Hi I want a project in a solution, with out having any folders.

i.e my path should be \.sln\Project Name but not like .sln\ProjectFolder\Project Name. i have seen couple of GAT Packages where each of them using Project collection tag, but i does not want under Project folder.

so how do i use them, i should use <project> or <project item> .any code sample

that would help me a lot, thanks in advance

satish

satish padidem  Wednesday, January 02, 2008 7:31 AM
When you mean ProjectFolder, I think that you're refering to a SolutionFolder. In the default Guidance Package which is created by GAT you have a sample of how you can achieve that. Anyway here you've an example...

Code Block

<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="SampleFolder">
<ProjectTemplateLink ProjectName="$ProjectName$">Projects\ConsoleApplication\ConsoleApplication.vstemplate</ProjectTemplateLink>
</SolutionFolder>
<SolutionFolder Name="Other Projects" />
<SolutionFolder Name="WebSites">
<ProjectTemplateLink ProjectName="$WebSiteName$">Projects\WebSite\WebSite.vstemplate</ProjectTemplateLink>
</SolutionFolder>
</ProjectCollection>
</TemplateContent>


Jose Escrich  Thursday, January 03, 2008 3:57 PM

Hi jose,

Thanks for the reply, I have some how got the solution after many trials and errors ,what I did is I placed ProjectTemplateLink under project collection with out specifying the folder name like below. And it worked fine.

<ProjectCollection>

<ProjectTemplateLink ProjectName="$ProjectName$">Projects\ConsoleApplication\ConsoleApplication.vstemplate</ProjectTemplateLink>

</ProjectCollection>

satish

satish padidem  Friday, January 04, 2008 3:52 AM
When you mean ProjectFolder, I think that you're refering to a SolutionFolder. In the default Guidance Package which is created by GAT you have a sample of how you can achieve that. Anyway here you've an example...

Code Block

<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="SampleFolder">
<ProjectTemplateLink ProjectName="$ProjectName$">Projects\ConsoleApplication\ConsoleApplication.vstemplate</ProjectTemplateLink>
</SolutionFolder>
<SolutionFolder Name="Other Projects" />
<SolutionFolder Name="WebSites">
<ProjectTemplateLink ProjectName="$WebSiteName$">Projects\WebSite\WebSite.vstemplate</ProjectTemplateLink>
</SolutionFolder>
</ProjectCollection>
</TemplateContent>


Jose Escrich  Thursday, January 03, 2008 3:57 PM

Hi jose,

Thanks for the reply, I have some how got the solution after many trials and errors ,what I did is I placed ProjectTemplateLink under project collection with out specifying the folder name like below. And it worked fine.

<ProjectCollection>

<ProjectTemplateLink ProjectName="$ProjectName$">Projects\ConsoleApplication\ConsoleApplication.vstemplate</ProjectTemplateLink>

</ProjectCollection>

satish

satish padidem  Friday, January 04, 2008 3:52 AM

You can use google to search for other answers

Custom Search

More Threads

• CreateProjectAction Action will not work
• GAT/GAX for VS2005 RTM released!
• What causes the project to be added under Guidance Packages when creating a new project?
• Visual Studio does not recognise GAT
• How can i add a project in existed Solutionfolder??
• Register Guidance Package Problem
• Executing actions from templates
• Vista + VS 2008 + GAT/GAX
• The project factory Library is not registered
• Problems with GAT and VS 2008