A solution file only contains project file locations. It does not have any information about project a references to project b. These are in the project a .proj file. These references should be relative. But if the drive letters do not match when the project reference was added then they can not be relative.
when adding a project reference the solution file is used to get the location. So first fix the solution file.
most likely you need to go through all your project file and fix the project references.
If you don’t know how it edit the project files, just open the solution. For each project in the solution, remove all project references, save, then re-add, then save. The same for the solution file.