Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to organize ASP.NET app_code folder? [closed]

Tags:

asp.net

In ASP.NET my app_code folder has a ton of .cs files in it. It would be great if I could organize them by the module they belong to in my project so I am not scrolling forever when I expand the app_code folder. How do you organize yours?

like image 641
Greg Avatar asked May 28 '09 19:05

Greg


1 Answers

Use folders...

Or move all your classes out to a Class Library for your Web site and reference that library.

Then properly folder & namespace all your classes there.

In the past, where I've had to use the App_Code folder I've mirrored the folder structure of the main site for anything specific and had a common folder for everything else

e.g.

Site
|- App_Code
    |- Login
    |- Common
    |- Controls
    |- AdminArea
    |- SomethingElse
|- Login
|- Controls
|- AdminArea
|- SomethingElse
\- Default.aspx
like image 98
Eoin Campbell Avatar answered Sep 24 '22 15:09

Eoin Campbell