How to make one project depend on another in Visual Studio?

Viewed 6106

Is it possible to have one project depend on another project within the same solution? Say I have project A, which statically links to project B, how would I set this up? Ideally I would like to not mention project B's path from within project A, but rather have them output their files maybe in the same folder up in the directory tree. (Maybe using the solution path)

Would outputing program A & B both in the same directory just let it work? I've set A to depend on B already (so B always builds when A does), but it is a static library, so I'd expect it to have to somehow be mixed up with the object file and not the executable?


EDIT: I have both output directories set to the same directory, but it is not linking.

1 Answers
Related