使用 nuget.exe 打包应用程序,我指定 Release 作为配置,但失败并显示“确保项目已构建”。因为它在 Debug 文件夹中查找,而不是在 Release 文件夹中查找:
NuGet.exe pack "C:\dev\Test\WpfApp1.csproj" -OutputDirectory "C:\dev\a\packages\" -Properties Configuration=Release
Attempting to build package from 'WpfApp1.csproj'.
Unable to find 'C:\dev\Test\bin\Debug\WpfApp1.exe'. Make sure the project has been built.
Run Code Online (Sandbox Code Playgroud)
为什么?
nuget ×1