我们从TFS下载了一个项目,在还原Nuget包后,出现以下错误:
我们在任何地方都没有使用Task。看起来它正在内部使用。有什么指针可以帮助解决这个错误吗?主要看起来是由于NuGet包的版本错误引起的。但不确定根本原因。 我们使用的是VS 2013 Update 5版本。 图片链接:
Error 5 The "ValidatePackageReferences" task could not be loaded from the assembly projectPath\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.Tasks.dll. Could not load file or assembly 'file:///projectPath\packages\Microsoft.Bcl.Build.1.0.14\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. projectName
我们在任何地方都没有使用Task。看起来它正在内部使用。有什么指针可以帮助解决这个错误吗?主要看起来是由于NuGet包的版本错误引起的。但不确定根本原因。 我们使用的是VS 2013 Update 5版本。 图片链接:
![enter image description here](https://istack.dev59.com/taRkw.webp)