我正在命令行上创建一个 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 确实存在于一个更大的解决方案中,但它不依赖于该解决方案中的任何其他项目。
我怎样才能让它工作?