“不可恢复的构建错误” 在任何 MSI 安装项目上
不久前,我在构建任何 Visual Studio 部署项目时遇到此错误。
“不可恢复的构建错误”
我以为我的 VS 安装已损坏或删除了一些重要文件,但是...
Some time ago I got this error when building ANY Visual Studio Deployment project.
"Unrecoverable build error"
I thought my VS installation was corrupted or I deleted some important files, but ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
......我所要做的就是。
关闭 Visual Studio。
开始,运行或WIN+R,输入cmd,确定。
对于 x64 位计算机
警告:您必须在管理模式下运行命令提示符!
关闭命令提示符。
打开 Visual Studio 并尝试重建您的部署项目! 这对我有用!
...all I had to do was.
Close down Visual Studio.
Start, Run or WIN+R, type cmd, OK.
For x64 bit machines
Warning: you MUST run the command prompt in Admin Mode!
Close Command Prompt.
Open up Visual Studio and try rebuilding your deployment project! It worked for me!
我们遇到了这个问题,并且上述解决方案对我们不起作用。 经过几天的绞尽脑汁,我们发现解决方案是从本地用户临时文件夹中删除所有 VSI*.TMP 文件,位置为:
C:\Documents and Settings\username\Local Settings\Temp
在我们的例子中,在 Hudson 构建机器上出错 - Visual Studio 似乎创建了临时文件并且没有正确清理它们。 一旦创建了 65536 个临时文件(VSI0000.tmp 到 VSIFFFF.tmp),它就无法再创建更多文件,并且 MSI 项目将无法构建。
感谢这篇博客文章的解决方案:
http:// blog.richardadleta.com/2009/08/using-visual-studio-command-line.html
We had this problem, and the solutions above didn't work for us. After several days of head-scratching, we found that the solution for us was to delete all the VSI*.TMP files from the local user temp folder at:
C:\Documents and Settings\username\Local Settings\Temp
In our case this went wrong on a Hudson build machine - Visual Studio seems to create temp files and not clean them up properly. Once it has created 65536 temp files (VSI0000.tmp to VSIFFFF.tmp) it can't create any more and MSI projects will fail to build.
Kudos to this blog post for the solution:
http://blog.richardadleta.com/2009/08/using-visual-studio-command-line.html
如果您将项目输出包含为“发布项”并且未指定将生成输出的 PublishProfilePath,也可能会发生这种情况。 不幸的是,当您选择此输出类型时,系统不会提示您选择此关键信息。
要指定路径,请单击“文件系统”窗口右窗格中的“项目输出”项,
然后显示它的“属性”面板(Ctrl+W、P)。
单击该字段,您应该能够为您的项目选择所需的发布配置文件(如果您尚未创建发布配置文件,则需要右键单击“解决方案资源管理器”中的主项目,然后单击“发布”;我创建了文件夹配置文件)。 进行干净的构建,就我而言,问题已解决。
请注意,我之前已经注册了上述 DLL,因此这也可能是问题的一部分。
This can also occur if you are including Project Output as "Publish Items" and you have not specified the PublishProfilePath that will produce the output. Unfortunately when you select this output type, you are not prompted to select this critical piece of information.
To specify the path, click on the Project Output item in the right pane of the File System window,
then display the Properties panel for it (Ctrl+W, P).
Click the field and you should be able to select the desired publish profile for your project (if you haven't created one you will need to by right clicking on the main project in Solution Explorer and then click Publish; I created a Folder profile). Do a clean build and in my case the issue was resolved.
Note that I had previously registered the above mentioned DLLs, so it's possible that was part of the issue as well.
我在 Visual Studio 2010 Ultimate 中遇到了同样的问题。 注册技巧:
有帮助!
I ran into the same issue in Visual Studio 2010 Ultimate. Registration tricks:
helped!
尝试了上面的解决方案......最终删除并添加 Visual Studio 安装程序项目扩展解决了问题。
将其留在这里作为替代解决方案。
tried those solutions above and... finally removing and adding Visual Studio Installer Project extension solved the problem.
Leaving it here as an alternative solution.
重新安装(修复)Visual Studio 为我解决了问题。
Reinstall (Repair) Visual Studio resolved the problem for me.