我有一个使用Visual Studio 2010构建的WCF数据服务项目,该项目运行正常.突然间,它不再编译了.它给了我这样的消息:
错误7名称空间'System.Data'中不存在类型或命名空间名称'Services'(您是否缺少程序集引用?)C:\ U ... s\Visual Studio 2010\Projects ...\DataService. cs ......
错误8命名空间"系统"中不存在类型或命名空间名称"Linq"(您是否缺少程序集引用?)DependencyResolver.cs 3 14
错误10名称空间"System.ServiceModel"中不存在类型或命名空间名称"Web"(您是否缺少程序集引用?)
错误12找不到类型或命名空间名称"DataService"(您是否缺少using指令或程序集引用?)
我该如何解决?
我的剃刀视图无法编译,出现以下错误:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Run Code Online (Sandbox Code Playgroud)
我添加了System.Web.Helpers作为对我的项目的引用,所以我不确定我还需要做什么.我在添加引用后也尝试了一个干净的重建,没有任何改变.
我错过了什么?