简体   繁体   English

nuget 2.2.3中带有nuget包的OutputPath错误

[英]OutputPath error with nuget pack in nuget 2.2.3

I am creating a NuGet package on the command line as follows: 我正在命令行上创建一个NuGet包,如下所示:

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

This works successfully with NuGet.exe 2.1.3, but when I updated to NuGet.exe 2.2.3 with NuGet.exe update -self, running this command now breaks with the following error: 这可以在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 does live within a larger solution, but it has no dependencies on any other projects in that solution. MyProject确实存在于更大的解决方案中,但是它不依赖于该解决方案中的任何其他项目。

How can I get this to work? 我该如何工作?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM