Nuget 2.2.3中带有nuget pack的OutputPath错误

时间:2013-02-04 15:10:12

标签: c# nuget nuget-package

我在命令行上创建一个NuGet包,如下所示:

nuget pack MyProject.csproj -Properties "Configuration=Release;Platform=AnyCPU;OutputPath=." -Build

这对NuGet.exe 2.1.3成功运行,但是当我使用NuGet.exe update -self更新到NuGet.exe 2.2.3时,运行此命令现在会出现以下错误:

The output path property is not set for project 'MyProject.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='AnyCPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.
Done building project "MyProject.csproj"
Failed to build 'MyProject.csproj'

MyProject确实存在于更大的解决方案中,但它不依赖于该解决方案中的任何其他项目。

我怎样才能让它发挥作用?

1 个答案:

答案 0 :(得分:1)

这是通过http://nuget.codeplex.com/workitem/2920修复的问题,应尽快更新。