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?