Reputation: 1007
I cloned a project with vs 2013. When I run it I get this error.
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
Upvotes: 36
Views: 20216
Reputation: 490
The above answer didn't work for me. I just had to remove references (in packages and proj file) to Microsoft.Bcl.Build.. Rebuilt and succeeded.
Upvotes: 1
Reputation: 1453
Verify that you have Nuget Package Manager installed. By default, Visual Studio 2010 doesn't have it (later versions do) - Open Tools / Extension Manager - Search for Nuget Package Manager and click Download - After this I had to remove the Nuget package (Microsoft.Bxl.Async, Microsoft.BCL, and Microsoft.Bcl.Build) causing the error, restart VS and re-add the package.
Upvotes: 0
Reputation: 19377
(For some reason none of the other answers worked for me.)
I resolved the issue by doing this:
Manage NuGet Packages or Solution
.Microsoft.Bcl.Build
to a previous version 1.0.14. (Latest stable version at the moment of writing this is 1.0.21)Upvotes: 9
Reputation: 31
I just went to the Manage NuGet packages options for the particular VS project and updated the version of the Microsoft BCL nuget and it solved the problem for me.
Upvotes: 3
Reputation: 1147
I'm not sure about root cause of this issue but it appeared when I added missing libraries by hand.
I resolved it by doing this:
<solution>\packages\Microsoft.Bcl.Build.1.0.13\
Upvotes: 47