Value of type '|1' cannot be converted to '|2'. Type mismatch could be due to the mixing of a file reference with a project ...

Value of type '|1' cannot be converted to '|2'. Type mismatch could be due to the mixing of a file reference with a project reference to assembly '|3'. Try replacing the file reference to '|4' in project '|5' with a project reference to '|6'.