您的位置:首页 > 移动开发

Asp.net - The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)

2014-10-16 12:37 441 查看
  我在 项目 下面创建一个 App_Code的文件夹,然后在其下创建自定义的类,但是当我在该项目下别的地方使用时报错:

The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)

  解决方案:

    1,在创建的类上右键,选择 Properties,如图:



  2,将 Build Action 属性设置为 Compile,如图:



即可.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐