Take the 2-minute tour ×

at vs2008 i could set App_Code folder, but at vs2010 i can not do it, that's why i put my dataset's and class' to App_Data folder. Either I do not know even App_Data folder is secure? Any suggestions?


share|improve this question

6 Answers 6

up vote 8 down vote accepted


share|improve this answer
is the reason why code-intelligence does not work on class' created in App_Code ? Either how can i hide my dataset 's ? I wouldn't that my dataset degisgner could be read –  softwaremonster Jun 22 '10 at 12:22
thanks for your answer it helps me really !!! –  softwaremonster Jun 22 '10 at 12:23
@softwaremonster: Very glad that it helped! :) It would be very nice if you could also upvote my answer. –  abatishchev Jun 22 '10 at 18:43
i may only mark your answer as correct answer, i have'not enough reputation to vote up :( thanks again ! –  softwaremonster Jun 22 '10 at 23:29
@softwaremonster: now you're able I guess :) nice to help you! –  abatishchev Jun 23 '10 at 7:08

If you want to add the App_Code folder, you have to manually add the folder. Add->Add New folder--> you have to give it the folder name "App_Code" when you do it, and vs2010 automatically will change its folder type.

good luck

share|improve this answer

If you want to use standalone class files (in "App_Code" dir) in VS 2010 project, be sure set the File Properties > Build Action for each *.cs or *.vb file to "Compile" in the Properties > Advanced dialog.

Also, use the same namespace as your project and these standalone classes will be readily available to the rest of your project.

Took me a bit to realize the default setting in my VS was "Content" instead of "Compile."

share|improve this answer

Have you tried right-clicking on the project in the Solution Explorer, selected 'Add...' and looked under ASP.NET folders?

From memory, even previous versions of VS don't automatically put the App_Code folder in your project by default.

share|improve this answer
thanks ! it works –  softwaremonster Jun 22 '10 at 10:05

If you just create a folder called App_Code it will recognise it as the App_Code you want, it is strange that in the add .net folder it doesnt appear.

This the route I took for it, and it all works fine.

share|improve this answer

I hope this will help you - the .cs files should not be placed in a folder. Just put them in the project, alone, and not in a folder. Then your classes will be visible. This is a difference in VS 2010.

share|improve this answer

Your Answer


