I have a setup project in .NET. When I save the project and the other projects to subversion, the setup project no longer compiles. I get the error \"Unable to update dependenci
I would like to add, that I get the same error when I edit the deployment project from my computer instead of the dedicated compiler computer.
The last time I got that error I needed to roll back the last changes, and re-do it from the dedicated compiler computer.
Restarting VS2010 didn't work for me but I managed to get everything working by doing a 'Clean Solution', then a 'Build Solution'. Trying 'Rebuild Solution' after the clean didn't work however. Then I could run the Solution with F5 as normal.
This can also happen when you are trying to debug and have selected the Release mode. Got me just now :(
Closing VS2010 and then re-opening it has always worked for me :)
There is a long discussion thread about this on MSDN. It seems like there are many possible causes. The discussion includes a few links for this problem from Microsoft. Here is a hotfix for VS2005 and here is a workaround for VS2010.
This solved the same problem for me: I added the assemblies that were mentioned in the error message to the GAC. When I recompiled the project the dll's appeared under "Detected Dependencies" in the Solution Explorer and I got the same error. Then I excluded the dll's (right-click and select Exclude) and the project finally compiled ok.