nuget 2.2.3 中 nuget pack 的输出路径错误

本文关键字:nuget 路径 错误 输出 pack | 更新日期: 2023-09-27 17:57:24

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

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

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

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 确实存在于更大的解决方案中,但它不依赖于该解决方案中的任何其他项目。

我怎样才能让它工作?

nuget 2.2.3 中 nuget pack 的输出路径错误

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