且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MSBuild 任务 - 构建失败,因为在发布而不是调试中构建了一个解决方案

更新时间:2023-01-02 20:25:19

确保你所有的构建脚本都有这个部分:

Make sure that all your build scripts have this section:

<ConfigurationToBuild Include="Debug|Any CPU">
  <FlavorToBuild>Debug</FlavorToBuild>
  <PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>

并且它被设置为调试".

and that it is set to "Debug".