0

New to working with Visual Studio Solutions.

I normally place my Site Class file with basic functions in a folder called App_code

But noticed I created a website project in visual studio and only have options for .net folders :

App_Globalresources App_localresources Themes App_Data App_Browsers

Should I instead put my customer class files in one of these ?

StevieB
  • 6,263
  • 38
  • 108
  • 193

1 Answers1

0

Website project can use App_Code.

Web Application project doesnt use App_Code. You can just add a class. Everythign compiles as code and makes a dll file.

Michael Christensen
  • 1,768
  • 1
  • 13
  • 11
  • Ok saw that above. Which do you recommend for website then, create as Web Site Project or Web Application ? – StevieB Jul 20 '11 at 09:19
  • http://msdn.microsoft.com/en-us/library/aa730880(v=vs.80).aspx#wapp_topic5 I typically use web application projects. But one of the advantages of website project is the actual code files are copied to the hosting and it's easier to make code changes to a production side. With web application project everything compiles and you copy the dll files. If you have a larget solution with several projects web application project is better. – Michael Christensen Jul 20 '11 at 09:26