VS2010 Appcode Folder Issues

Source: Internet
Author: User

It cannot be added in a Web application by right-clicking the project-〉 "Add"-〉 "Add ASP." Because App_Code does not exist in the Web application.
However, you can create it manually and add a folder named App_Code. The appearance of the App_Code created in this way and created in the Web site is the same.
Don't be happy first, it's not that simple.
When you create a class in App_Code, you will find no smart hints. When a page is referenced in the background, it is wrong to say that it does not exist.
The solution is to select your class file, in the properties "advanced" in the "Build Action" default "content" to be compiled instead.
That's all you have to do.

You can also add "App_LocalResources" to your Web application project, and it is also possible to add classes under this folder, so you do not need to add the App_Code folder.
You can also create a folder, or simply add a class without a folder, as long as you modify the class advanced properties of the "Build Action" to "compile" to

Transfer from http://blog.csdn.net/zorsbutape/article/details/6327156

VS2010 Appcode Folder Issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.