安装项目 HRESULT = '80004005' 中的错误 [英] Error in setup project HRESULT = '80004005'

查看:21
本文介绍了安装项目 HRESULT = '80004005' 中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装项目,几个月来一直运行良好.但是,它突然开始拒绝构建并出现错误:

I have a setup project which has been working fine for months. However, it has suddenly started refusing to build with the error:

HRESULT = '80004005'

HRESULT = '80004005'

设置项目包含三个项目的输出,我已将问题缩小到其中之一.

The setup project contains the output from three projects, and I have narrowed down the issue to one of them.

我在这里发现了一些与此相同问题的问题,并尝试了所有问题,即:

I have found a few questions here with this same issue and have tried them all, namely:

  • 删除了项目并重新添加到解决方案中
  • 删除所有引用并重新添加

如果我右键单击安装项目中的项目输出并选择查看依赖项",则列表为空,这似乎是其他人发现此问题的症状.然而,尽管在谷歌上搜索了几个小时,我还是没能解决它.

If I right click the project output in the setup project and select 'View Dependencies' the list is empty which seems to be a symptom others have found with this issue. However, despite several hours of googling, I have not managed to resolve it.

推荐答案

好的 - 我终于找到了答案.我检查了我的解决方案中的每个项目文件,发现其中一个以

Ok - I finally found the answer. I checked each project file in my solution and found that on of them started with the line

<Project ToolsVersion="4.0"

其余的开始:

<Project ToolsVersion="3.5"

我最近可能在 VS2010 中打开了该项目,但奇怪的是从那时起它运行良好.反正把4.0改成3.5就解决了.

I may have opened the project recently in VS2010 however the strange thing is it has worked fine since then. Anyway, changing the 4.0 to 3.5 solved it.

这篇关于安装项目 HRESULT = '80004005' 中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆