Fixed bugs with getting unloaded projects from a solution too early and using the wrong local repository in the resolver.