Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App_Code folder is missing in VS 2010

I was trying to create a Dynamic Data Website using VS 2010 RC. An attempt to create an App_Code folder where I would put a LINQ to SQL class, failed. When I selected 'Add ASP.NET Folder' to add the folder, I had options to create only the following folders:

  • App_GlobalResources
  • App_LocalResources
  • App_Data
  • App_Browsers
  • Theme

What happened to the App_Code folder?

like image 580
Vadim Avatar asked Feb 17 '10 01:02

Vadim


People also ask

What is the App_Code folder?

The App_Code folder can contain source code files written as traditional class files — that is, files with a . vb extension, . cs extension, and so on. However, it can also include files that are not explicitly in a specific programming language.

What is use of App_Data and App_Code folder?

The App_Code folder can contain sub-directories of files, which can include class files that in different programming languages. Contains application data files including . mdf database files, XML files, and other data store files.

What is App_Data folder?

The App_Data folder is used by ASP.NET to store an application's local database, such as the database for maintaining membership and role information.

What is application folder in asp net?

The asp.net application folder is contains list of specified folder that you can use of specific type of files or content in an each folder. The root folder structure is as following. BIN. App_Code.


1 Answers

Why not create another project, a class library, and put it in there. That's by far the best way to keep those classes separate from the rest of your website.

To answer your specific question about the App_Code folder, it's available in WebSite projects as an Asp.Net folder you can choose from. But from a web application project, you can just create a new folder and name it App_Code and it will work just fine. This is as of Visual Studio 2010 RC.

like image 156
Chris Conway Avatar answered Sep 26 '22 23:09

Chris Conway