1。昨日编译一专案Web安装程式,发生错误"aspnet_merge.exe" exited with code 1,错误信息不详。
2。修改编译条件重新编译,编译Output窗口获取详细错误信息。
2.1。菜单--Tools(工具)-->Options(选项)--> Projects and Solutions --> Build and Run在MSBuild project build output verbosity 列表里选择 Detailed.如下图

3。获取错误信息An error occurred when merging assemblies: Index was outside the bounds of the array。
4。修改Web Deployment属性页下的Output Assembilies,将默认第一项改为第二,三,四项。如下图。

5。重新编译即可。
本文介绍了解决Web安装程式编译时出现的“aspnet_merge.exe exited with code 1”错误的方法。通过调整编译输出详细度及Web部署属性设置,最终解决了“Index was outside the bounds of the array”的问题。
1万+

被折叠的 条评论
为什么被折叠?



