无法找到要嵌入为输入文件资源的Conceptual Schema节点

use*_*583 12 error-handling schema build

刚刚使用Entity Framework 5.0更新到.NET 4.5框架,并在尝试构建时遇到以下错误:

  • 无法找到概念架构节点作为输入文件'E:\ Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'的资源.

  • 找不到要作为输入文件'E:\ Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'的资源嵌入的存储架构节点.

  • 找不到要映射为输入文件'E:\ Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'的资源的Mapping节点.

我只通过谷歌发现了大约3个与此问题有关的帖子,但没有一个提供解决方案.任何帮助,将不胜感激.

Mik*_*ike 8

在TFS上构建时,您是否遇到此问题?

如果是这样,我今天遇到了同样的问题:

Could not find the Conceptual Schema node to embed as a resource for input file ...
Could not find the Storage Schema node to embed as a resource for input file ...
Could not find the Mapping node to embed as a resource for input file ...
Run Code Online (Sandbox Code Playgroud)

我们的常驻构建专家告诉我,TFS构建服务器没有加载.NET 4.5.

要解决此问题,我将项目属性设置为.NET 4.0而不是.NET 4.5,重新生成我的EDMX文件/服务,并成功构建/签入.