1

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'

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:

  • Removed projects and re-added to the solution
  • Removed all references and re-added

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Macros
  • 7,099
  • 2
  • 39
  • 61

2 Answers2

4

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"

where all the rest started:

<Project ToolsVersion="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.

Macros
  • 7,099
  • 2
  • 39
  • 61
0

This may help:

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Spyros
  • 46,820
  • 25
  • 86
  • 129