I'm checking for ways to add a reference to a project in another solution.
To be specific, I can add the reference to a project, even if it is in another solution. But I met 2 issues:
- It refer the project by relative path, which may or may not exist if my colleagues update the project
- The Nuget package is not there (it is in the other solution's package folder)
For example, Let's say Project Restaurant (Solution A) depends on Project HotDog (Solution B). On project HotDog we refers a library Quartz for example. But when we build, it would throw an exception "cannot find Quartz" because the reference of HotDog is pointing to "../packages", not "[Path_to_solutionB]\packages"
Of course we can re-add the reference but this solution is temporary only and will not work on our CI server (will retrieve these configurations through SVN).
I think there must be a way. So is there any best practice to cross-reference project in different solutions, without impacting the solution-managed Nuget Lib Packages?