Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Creating a Project with a Static Project Folder Name.
 

Creating a Project with a Static Project Folder Name.

Is there a way to create a project in a solution template using a static project folder name instead of the actual project name? This is my solution template:

<TemplateContent>

<ProjectCollection>

<SolutionFolder Name="ClassLibraries">

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

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

</SolutionFolder>

<ProjectTemplateLink ProjectName="$WebSiteName$">Projects\WebSite\WebApplication.vstemplate</ProjectTemplateLink>

</ProjectCollection>

</TemplateContent>

I want the $WebSiteName$ project to be created under a folder named WebSiteFiles instead of the input of the Create Solution Wizard.

JasonClement  Tuesday, November 20, 2007 9:56 PM
Hi Jason,
No, you can't do that, maybe you can try using the UnfoldTemplateAction or the DTE methods. AddFromTemplate, AddFromFile, etc.

hth.
jose.
Jose Escrich  Thursday, December 06, 2007 8:01 PM
Hi Jason,
No, you can't do that, maybe you can try using the UnfoldTemplateAction or the DTE methods. AddFromTemplate, AddFromFile, etc.

hth.
jose.
Jose Escrich  Thursday, December 06, 2007 8:01 PM
Yeah, I had to use the DTE. I was hoping somebody would have know an easier way to do it. I basically:

Removed the generated project from the solution.
Copied the old project folder into a new WebSiteFiles folder
Added the project to the solution again.
Went back and deleted all old project files

It was a pain, but the project has to be in a WebSiteFiles folder so Team Foundation Server can publish those pages to a web server. Thanks for reassuring me that I was on the right track.
JasonClement  Thursday, December 06, 2007 8:29 PM

You can use google to search for other answers

Custom Search

More Threads

• Install of February 2008 GAX Fails
• Problem with Specifying Command Bars
• Guidance Package Manager not enabled in VS 2008
• Get Full Path for Project Item...
• Microsoft.Office.Interop.Excel.Applicatio not defined
• Smart Client Application Creation Error.
• registry entry for GAT and GAX
• Is it a well-known bug?
• Guidance Automation Kit installation issues
• GAT Roadmap