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