Something is causing my .vdproj to go haywire periodically and with no identifiable cause, resulting in the error message, "ERROR: Unable to update the dependencies of the project. The dependencies for the object 'Primary output from Cool Program (Active)' cannot be determined.". This pertains to Visual Studio 2017 Community Edition, 15.9.14, using the VisualSVN plugin and Tortoise SVN. I am also using Eziriz .NET Reactor for code protection. I used this configuration for a good 2 years with no issues. This has just started happening repeatedly so there must be something that has changed that is causing it - either some little attribute of my configuration that makes it go bonkers, or something in the environment it doesn't like. I just don't know how to figure out what it would be. The only change that stands out to me is that I had to change from .NET 4.6 to 4.6.1 because of an external dependency.
The setup & deployment project has suddenly started saying it can't find the dependencies for the active project. What's more perplexing is that yesterday, I did over 20 builds throughout the day and then it just mysteriously happened out of the blue. I had not opened or run any new programs that I recall, nor had I closed VS or changed anything in the environment. It was spontaneous and without any correlating system change that I know of. It seems as though Visual Studio simply lost its mind.
I have read other posts (Compile Setup project with devenv.com - "ERROR: Unable to update the dependencies of the project" and "Unable to update dependencies of the project" after committing to Subversion) on this error, examined my .vdproj, and previously tried different fixes the last time this happened:
What I Tried
- Checked .vdproj and confirmed that the path to the primary project was full and correct;
- Removing .vdproj from the solution and then re-adding it;
- Closing and re-opening VS;
- Emptying the Hierarchy and Files sections of .vdproj;
- Updated to the latest version of VS;
- Rebooting;
- Disabling performance monitoring & reporting;
- I thought that I fixed it by removing my primary project from the Setup project and then re-adding it, thus requiring multiple subsequent manual adjustments to the file layout, shortcuts etc., but this is a labor-intensive work-around, not a solution. And it turned out to work only temporarily - the problem came back.
UPDATE JAN 14 2020
While the work-around mentioned below helps temporarily, I was never able to fix this problem. It just kept coming back. My solution was to abandon the setup & deployment project completely and switch to Inno Setup. My advice to you, if you try all of these methods and can't fix it, is to do likewise.