I have a solution with two C++ (CLR) projects. One project references the other, so the Project Dependencies and Build Order correctly reflect that. Both projects target the same output folder. The dependent project has the dependency configured with Copy Local: false
.
If I "Rebuild" the dependency by itself, it builds fine and its targets are in the output directory.
When I "Rebuild" the solution (or the dependent project), I get:
error LNK1181: cannot open input file '<outdir>\Dependency.lib'
Sure enough, the dependency outputs are gone from the output directory. If I look at the build log, the dependency seemed to have (re)built correctly, but then those outputs seem to have been deleted as soon as the dependent project build started. Why would that happen?
Additionally, when I "Clean" the solution, then immediately "Build" the solution, I don't get any errors.
Isn't "Rebuild" supposed to be, effectively, Clean + Build?