Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Adding items to a solution folder automatically opens them in the IDE
 

Adding items to a solution folder automatically opens them in the IDE

When adding a file using

ProjectItem item = _folder.Parent.ProjectItems.AddFromFile(destination);

Visual studio automatically opens the file. Is there any way of doing this that wont open the file as we have a number of files that use external editors and when they are added to a solution visual studio decides that it wants to launch them automatically
avaya12  Friday, February 23, 2007 10:10 AM
Hi avaya12,

This is a confirmed bug in Visual Studio (not GAX nor GAT), you may want to try to post to the VS extensibility forum to learn if they're offering any workaround for this until they fix it in a future VS release.

I know how much of a pain this bug can cause. I'll reping my team about this as I believe we somehow got to bypass it although I can't remember the specifics. I'll post them here when I do.

In the meantime please try to post to VS extensibility to see what they've to say about this.

thanks,
-V.
vga  Friday, February 23, 2007 2:32 PM
Hi avaya12,

This is a confirmed bug in Visual Studio (not GAX nor GAT), you may want to try to post to the VS extensibility forum to learn if they're offering any workaround for this until they fix it in a future VS release.

I know how much of a pain this bug can cause. I'll reping my team about this as I believe we somehow got to bypass it although I can't remember the specifics. I'll post them here when I do.

In the meantime please try to post to VS extensibility to see what they've to say about this.

thanks,
-V.
vga  Friday, February 23, 2007 2:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Processing T4 in different languages
• How to set the Open attribute of AddItemFromStringAction
• Project Type "Service Factory: Modeling Edition" not found under Guidance Packages
• Keyref warning
• Approches for Copying files in solution folder
• Build Event programatically - set post build event
• ProjectTemplateLink does not support substitution parameters (as used by GAT & SFT)
• no menu entry in VSS 08 for guidance automation packages
• Simple class template reference
• GAT Roadmap