小编Joh*_*lly的帖子

为什么 NuGet.exe 包忽略 Configuration=Release 参数?

使用 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

2
推荐指数
1
解决办法
509
查看次数

标签 统计

nuget ×1