gpt4 book ai didi

build - 确认 声明是正确的

转载 作者:行者123 更新时间:2023-12-04 15:51:38 27 4
gpt4 key购买 nike

我们已经从 TFS 下载了一个项目,在恢复 Nuget 包后,我们收到以下错误:

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

最佳答案

首先搜索“Microsoft.Bcl.Build.Tasks.dll”。谷歌上的nuget。然后将打开一个名为“https://www.nuget.org/packages/Microsoft.Bcl.Build/”的链接。然后像这样复制站点上显示的包名称

Install-Package Microsoft.Bcl.Build -Version 1.0.21

然后打开 Visual Studio ,转到 Tools>Nuget Package Manager>Package manager 控制台。现在粘贴复制的安装包,安装它。然后重启VS。问题就解决了。

关于build - 确认 <UsingTask> 声明是正确的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47025703/

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