Wednesday, April 9, 2008

App_Code folder in Web Application Projects

I've stumbled across an interesting glitch with Web Application Projects with (at least) Visual Studio 2008.
It seems that classes added to an /App_Code folder are not picked up by Intellisense. If you create the class outside the /App_Code folder, and then move it back in afterwards, Intellisense then picks it up. Go figure.
I don't know or care where the culprit lines of code exist that cause this situation, but a simple solution which I've seen other discussion forums recommend is: don't use an /App_Code folder in a web application project.
A secondary reason to the Intellisense issue would be to avoid confusion for developers, who may see an /App_Code folder and mistakingly think they are using a Web Site project model.

-Jase

No comments: