Room of a pleinolijf

Ask yourself this: how do I want to be remembered ?

VS 2005 App_Code bug

2 Comments

Lost some time over the following bug in Visual Studio 2005, so hopefully this post will prevent someone else doing the same.

When you manually create an App_Code folder in a VS2005 project, and you add a class to it, it probably won’t show up in IntelliSense. Don’t worry, it’s not you, it’s MS.

Every class you add to that folder, will have its Build Action property set to ‘Content’. Change this to ‘Compile’ and problem solved.

I suppose MS will think of this as a feature, because of the fact you created the folder manually, and like the Global Resources folder, might contain mostly icons, images, etc… Then ‘Content’ would be right. But then if they recognize the ‘App_Code’ folder automatically (VS even sets the code-icon for it), they might as well put the default Build Action property to ‘Compile’, dang it.

I do not know if this also occurs with a brand new project, to which App_Code was added on the moment of creation.

Advertisements

Author: pleinolijf

father | volleyballer | software engineer

2 thoughts on “VS 2005 App_Code bug

  1. Thank you – I spent a lot of time on that, but still you save me even more !

    Like

  2. Thanks very much

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s