Nuget 添加 SFML.NET 后无法编译项目



添加SFML后。. NET通过Nuget包管理器我得到以下错误:

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:WindowsMicrosoft.NETFrameworkv4.0.30319" directory.   

我使用的是Visual Studio 2012。

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

我发现这个错误可能以某种方式连接到它的依赖:basecclass . contrib . nuget。输出,但我不知道如何修复它。

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

进入解决方案的packages文件夹,找到以下文件:

Baseclass.Contrib.Nuget.Output.1.0.6buildnet40Baseclass.Contrib.Nuget.Output.targets

在该文件的第84行周围,您将发现一对<Using Namespace=... />标记。在这些之后,在<Code...>标签之前添加这个:

<Using Namespace="System.Threading" />

我已经在他们的github问题列表中报告了这个问题。

最新更新