index > Visual Studio Guidance Automation Toolkit > How do you include a folder that has been excluded from a project...

How do you include a folder that has been excluded from a project...

I have a couple wizards that create classes in a specific folder. For example the Forms folder. I've created an action called EnsureProjectFolderExistsAction that will return the folder's ProjectItem if it already exists and create the folder using ProjectItems.AddFolder if it doesn't exist. The problem comes when the folder already existed in the project and was excluded from the project. When I call ProjectItmes.AddFolder, it throws an exception because the folder already exists in the file system.

I saw a post from a couple years ago that suggested that you use Visual Studio commands to include the folder back into the project. This seems like a messy way to go. Is there a better way of doing it?
JLeBert

You can most probably find an answer to that and most DTE questions in the following yahoo discussion group: http://groups.yahoo.com/group/vsnetaddin/




Daniel Cazzulino [Solutions Architect MVP]
kzu
reply 2

You can use google to search for other answers

 

More Articles

• Installation error
• Unable to install GAX June CTP - States Visual Studio 8.0 is not ...
• How do you pass arguments from previous wizard pages
• Reuse Projects and Recipes
• How can I Organize templates in the "new project" dialo...
• Where can I get December 2005 version now?
• GAT is VS Solution Centric
• Uninstalling Missing Packages
• GAT/GAX for VS2005 RTM released!
• Slow Wizard Input using MonitorArgument
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Download not available
• Unable to install GAX June CTP - States
• Project References Guids?
• Integrating validation information withi
• Build Event programatically - set post b
• Guidance actions are gone
• Can you build a guidance package in VB?
• Issue passing input parameters to actions
• Where is the Recipe History stored?
• GAT/GAX for VS2005 RTM released!
• Extending Designer Toolbox
• Cannot install GAT or any other guidance
• T4 templates editor?
• GAT Custom Directive Processor
• Error 1001: Item has already been added.

Hot Articles

• CodeDom -Error when Run Recipe
• T3 template engine
• Error install GAX
• Project templates do not appear in VS 20
• Build Event programatically - set post b
• *.vstemplate for and *.csproj/*.vbproj m
• Slow Wizard Input using MonitorArgument
• Will we see an updated GAT Toolkit soon?
• Register Guidance Package fails
• Extensibility with DSL
• Nested Solution Folder Parent?
• Can instal GAT (and MobileClient! ;( )
• IExtenderProvider the GAT way...
• Issue passing input parameters to actions
• System.Collections.Generic.KeyNotFoundEx

Recommend Articles

• Input arguments for wizards
• Issue with DSL Tool
• How to use Generic List in T3
• Has anyone written a MSI bootstrapper fo
• Passing custom objects to t4 templates
• Combining GAT and CAB
• How do you add a using/reference to a t4
• enable GAT for existing projects
• Conditional Branching of Recipe Actions
• Cannot install GAX/GAT June 2006 CTP
• Guidance actions are gone
• June '06 Smart Client factory guidance t
• RegexMatchStringConverter
• How do you enable delay signing on a web
• Sharing gpState in TFS Source Control