0

通过 Nuget Packge 管理器添加 SFML.NET 后,出现以下错误:

Error   4   The "UnzipNuspec" task was not found. Check the following: 1.) The name of the       
task in the project file is the same as the name of the task class. 2.) The task class is     
"public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is     
correctly declared with <UsingTask> in the project file, or in the *.tasks files located 
in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.   

我正在使用 Visual Studio 2012。

正如在其他类似问题中指出的那样,我尝试关闭并打开 MSVS,但没有帮助。我还检查了注册表中的构建工具路径,它指向正确的目录。我试图安装和卸载 Nuget 包。

我发现该错误可能以某种方式与其依赖项有关:Baseclass.Contrib.Nuget.Output,但我不知道如何修复它。

4

1 回答 1

1

这是他们构建脚本中的一个错误。

转到解决方案的包文件夹并找到以下文件:

Baseclass.Contrib.Nuget.Output.1.0.6\build\net40\Baseclass.Contrib.Nuget.Output.targets

在该文件的第 84 行附近,您会发现几个<Using Namespace=... />标签。<Code...>在标记之前添加以下内容:

<Using Namespace="System.Threading" />

我也在他们的 github 问题列表中报告了这一点。

于 2014-08-27T02:22:24.123 回答