2014-02-05 34 views
24

我使用vs 2013克隆了一个项目。运行它时出现此错误。错误22无法从程序集中加载“EnsureBindingRedirects”任务

Error 1 The "EnsureBindingRedirects" task could not be loaded from the assembly D:\BMaster\packages\Microsoft.Bcl.Build.1.0.13\tools\Microsoft.Bcl.Build.Tasks.dll. Could not load file or assembly 'file:///D:\BMaster\packages\Microsoft.Bcl.Build.1.0.13\tools\Microsoft.Bcl.Build.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> 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. BargainMaster.Web 

感谢

回答

34

我不知道这个问题的根本原因,但它出现时,我用手添加缺少的库。

我解决它通过这样做:

  1. 删除<solution>\packages\Microsoft.Bcl.Build.1.0.13\
  2. 关闭解决方案
  3. 开放的解决方案
  4. 导航到查看/其他的Windows /包管理器控制台
  5. 出版社恢复包在窗口的右上角
  6. 重新建立
+1

我试图做到这一点,但我没有看到“恢复软件包”... – Colleen

+0

编辑:升级的nuget,看到了按钮,但这并不适合我:/ – Colleen

+0

我想尝试移动包(到别的地方)并运行'nuget.exe恢复路径\到\ my \ solution.sln' –

1

我刚去的特定VS项目管理的NuGet包选项,并更新了微软BCL的NuGet的版本,它解决了这个问题对我来说。

相关问题