gpt4 book ai didi

entity-framework - EntityDeploySplit 错误 - 缺少 Microsoft.Data.Entity.Build.Tasks.dll

转载 作者:行者123 更新时间:2023-12-04 02:52:45 25 4
gpt4 key购买 nike

在干净的 Windows 重新格式化并安装 Visual Studio 2013 后,尝试使用数据库优先的 Entity Framework edmx 文件构建项目会产生以下错误:

The "EntityDeploySplit" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Data.Entity.Build.Tasks.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Data.Entity.Build.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.



有什么方法可以单独安装吗?这个程序集默认包含什么?

更新:这在查找 EntityClean 任务时也会表现出来。我倾向于认为它首先检查 bin,因为另一个运行良好的开发人员尝试了清理/重建,然后它开始出现。

最佳答案

我发现接受的答案有点令人困惑,以下是对我有用的步骤。

在记事本中打开 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Data.Entity.targets。

将 UsingTask 元素更改为:

  <UsingTask TaskName="EntityDeploySplit"
AssemblyFile="Microsoft.Data.Entity.Build.Tasks.dll" />

<UsingTask TaskName="EntityDeploy"
AssemblyFile="Microsoft.Data.Entity.Build.Tasks.dll" />

<UsingTask TaskName="EntityDeploySetLogicalNames"
AssemblyFile="Microsoft.Data.Entity.Build.Tasks.dll" />

<UsingTask TaskName="EntityClean"
AssemblyFile="Microsoft.Data.Entity.Build.Tasks.dll" />

关于entity-framework - EntityDeploySplit 错误 - 缺少 Microsoft.Data.Entity.Build.Tasks.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20400054/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com