Carlos Quintero (Microsoft MVP) blog

Visual Studio Extensibility: macros, add-ins, SDK packages

MZ-Tools Articles Series: BUG: Adding a non-text file to a solution folder from a Visual Studio 2005 add-in or macro opens it

A new article of my MZ-Tools articles series about a bug of VS 2005:

BUG: Adding a non-text file to a solution folder from a Visual Studio 2005 add-in or macro opens it
http://www.mztools.com/articles/2007/MZ010.htm

Published Monday, February 19, 2007 6:08 PM by carlosq

Comments

# re: MZ-Tools Articles Series: BUG: Adding a non-text file to a solution folder from a Visual Studio 2005 add-in or macro opens it@ Tuesday, February 20, 2007 10:26 AM

Hi Carlos,

do Microsoft accept that this is a bug, or is it just your opinion. I expect that Microsoft consider it to be a feature not a bug.

In my Add-In, I add an Access database to the project, which I have been doing since my VB6 Add-In.

For VS 2005 I rename the file from .mdb to .mlb simply to prevent visual studio from opening it as a database. Obviously, this is stupid. If Microsoft consider it to be a feature, they should at least provide a way to prevent it.

Phil

# re: MZ-Tools Articles Series: BUG: Adding a non-text file to a solution folder from a Visual Studio 2005 add-in or macro opens it@ Tuesday, February 20, 2007 4:58 PM

Microsoft considers it a "by design" feature:

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=140181

But they did not argue why. I personally consider it a "by very bad design" feature, that is, a bug :-). If the programmer wants to open the file after adding it to the solution folder, he can do it calling some ShellExecute API. And from my point of view, a bug is also a behavior that confusses the user.

by carlosq

Leave a Comment

(required) 
(required) 
(optional)
(required)