Using VS2008, I am trying to add the App_Code folder from the add → folder → Add ASP_NET folder.
The App_Code folder option exists as expected, but ... is it disabled !?
I am sure that I am working with a WebSite project (and not with a web application) because I can add all other ASP_NET folders (App_Data - App_themes, etc.), and also because I do not have control declarations in my- (unlike a web application where you have partial classes declaring controls and eventHandlers, etc.). Fact is, if this is not a website project, why can I add other ASP_NET folders? And also - why am I not getting any designer file with management declaration, etc.? This is how everything works in VS2005.
If I continue and add the App_Code folder myself as a regular folder, it will pick up the ASP_NET App_Code folder icon - so this works fine.
He still pushes me, because I can’t understand why the option is disabled in the first place.
What is the clue why this is happening?
EDIT . I am trying to create a new website and I only get the web application template, so I doubt that I was able to create the website in the first place. A bit confusing!
source share