App_Code folder is missing in VS 2010

2019-01-17 14:26发布

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?

8条回答
走好不送
2楼-- · 2019-01-17 14:50

If you want app_code folder, you must create "ASP.NET web site". Once done, right click on website (Solution Explorer)-> Add ASP.NET folder->App_Code.

If you are looking at app_code folder inside "ASP.NET web application", you are wasting time.

查看更多
贼婆χ
3楼-- · 2019-01-17 14:55

if you create a class, it will ask you if you want to add it on a App code folder.

查看更多
登录 后发表回答