错误:一般打包失败 - 使用 devenv.com 打包 MSI 时
我有一个用于部署回归测试设置的 Visual Studio C# 解决方案。该解决方案包含类库、控制台应用程序和部署 (.vdproj) 项目。类库和控制台应用程序项目的输出将作为文件添加到部署项目中打包。解决方案中有一个项目(我们称之为 content.csproj),它保存所有“内容”文件(测试脚本、测试输入文件、测试配置文件等)。内容文件是构建解决方案时未编译的文件。相反,这些文件只是复制到输出目录。 content.csproj 的内容也被添加为要打包的文件列表。 content.csproj 中的文件数量已增长到大约 10,000 个文件甚至更多的极大水平。 在打包 content.csproj 的内容时,MSI 打包开始失败,并出现错误,
错误:一般打包失败
错误:不可恢复的构建错误
我猜这是由于 content.csproj 中的文件数量过多造成的 有人可以解释看到这种错误的确切原因吗? 如果有人可以指导我如何创建和配置部署项目以避免再次出现这种情况,我将不胜感激。
当要打包的文件数量非常大时,创建 MSI 包的最佳方法是什么?
详细信息:
我正在使用 Microsoft Visual Studio 9.0 安装附带的 devenv.com
谢谢,
Balaji
I have a Visual studio C# solution for deploying a regression test setup. The solution contains class library, Console Application and deployment (.vdproj) projects. The output of Class Library and Console Application projects are added as files to be packaged in the deployment project. There is one project (lets call it content.csproj) in the solution which holds all the 'content' files (test scripts, test input files, test config files etc.). Content files are files which are not compiled when the solution is built. Rather, these files are merely copied to the output directory.
The content of content.csproj is also added as the list of files to be packaged.
The number files that are part of the content.csproj has grown to an extremely large level approx 10,000 files or even more.
At one point the MSI packaging started to fail when packaging the contents of the content.csproj with the error,
ERROR: General packaging failure
ERROR: Unrecoverable build error
I guess this is due to the large number of files in the content.csproj
Can someone explain the exact reason for seeing such error?
I would appreciate if someone could guide me how the deployment project should be created and configured to avoid this scenario again.
What is the best way to create MSI package when there are extremely large number of files to be packaged?
Details:
I am using devenv.com that comes with the installation of Microsoft Visual Studio 9.0
Thanks,
Balaji
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论