I have two class library projects (single VS solution) and a GUI app (another solution), which uses these libraries. Both solutions are stored in separate git repos. There's no problems when working on a single machine (I just reference dlls once in a GUI project), but in order to work on the other machine I have clone both repos, rebuild the dlls, then modify the references in the project.
Now I'm thinking about creating the "lib" directory in the main app solution, put dlls in there and push it on git repo, but that seems incorrect way of doing things. The easiest way is to put all projects in the same solution, but it is not a good option, since libs will be used in other projects as well and are also constantly updating, so eventually libraries source code may become uncontrolled mess with such approach.
How to store dlls in projects using version control systems correctly?
Ideally, it should be possible to simply clone the project on any machine, open it in VS or VS code and continue working.