命名空间在项目中不可见。 (命名空间中不存在类型或命名空间名称)

时间:2014-02-28 06:33:44

标签: c# wcf

我有一个wcf项目,包含文件BelekeService.cs,IBelekeService.cs和文件夹DAL

enter image description here

所以,在我的Service.cs中,我可以编写using Beleke.App_Code.DAL;并编译所有内容,但如果我在IBelekeService.cs中编写相同的代码,我会收到编译错误 - The type or namespace name does not exist in the namespace (are you missing an assembly reference?)

出于某种原因,在我的对象浏览器中,有两个不同的项目:

enter image description here

对象浏览器: enter image description here

1 个答案:

答案 0 :(得分:1)

当我将通过实体数据模型生成的所有项目BuildAction更改为compile

时,所有内容都已解决
相关问题