在通过Nuget管理器添加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. 我正在使用2012。
正如在其他类似问题中所指出的,我试图关闭和打开MSVS,但没有起到任何作用。我还检查了注册表中的build路径,它指向了正确的目录。我试着安装和卸载Nuget包。
我发现这个错误可能以某种方式与它的依赖关系: Baseclass.Contrib.Nuget.Output,但我无法找到如何修复它。
发布于 2014-08-27 02:22:24
这是他们构建脚本中的一个bug。
转到解决方案的packages文件夹,并找到以下文件:
Baseclass.Contrib.Nuget.Output.1.0.6\build\net40\Baseclass.Contrib.Nuget.Output.targets在该文件的第84行周围,您将看到几个<Using Namespace=... />标记。在这些之后,在<Code...>标记之前添加以下内容:
<Using Namespace="System.Threading" />我也在他们的github问题清单上报告了这一点。
https://stackoverflow.com/questions/25474702
复制相似问题