All project references have yellow triangles every time solution is loaded


All my project (from the same solution) references are marked with a yellow triangle. The projects are all set to the same .NET version (4.5.1). The error log says:

The project 'CommonLibrary' cannot be referenced.

A way to temporarily fix the issue is to either:

  1. Remove and re-add the references
  2. Right click and choose Add Service Reference and immediatelly cancel.

However, the triangles come back every time I start the solution.

The solution is build successfully regardless or the issue. The real issue is that Resharper acts like the references don't exist.

Another thing that might be relevant is that I have 2 projects that are supposed to be unloaded but they become active every time I load the solution.

Any idea what to do with the issue?

Best Solution

I had similar issues and it usually comes down to the Target Framework (Project>Properties>Application). I was working on a solution using .NET 4.6 and for some reason the default framework for new projects have a different target (in my case it was 4.5.2). So make sure you check all your project at the very least have the same target framework.

Related Question