Search code examples
c#asp.net-mvcvisual-studioprojects-and-solutions

Reference to Project in Solution Showing as Missing


I have a multiple project solution and I need to reference one from the other. I've added the reference using the "Add Reference" menu but as soon as it's added it tell me that it's missing and the application will not build. However when I declare the reference in code via 'using', the intellisense does not detect any issues with the reference. Yet in the Solution explorer under the Reference folder there is a yellow triangle on the reference to indicate it's missing.

In the project file theres the following XML:

<ProjectReference Include="..\CompanyName.Core\CompanyName.Core.csproj">
      <Project>{4ea217e8-74c2-471e-83d3-ba7dfbf776a0}</Project>
      <Name>CompanyName.Core</Name>
    </ProjectReference>
    <ProjectReference Include="..\CompanyName.Model\CompanyName.Model.csproj">
      <Project>{33c00703-0d85-4f73-a296-b3a036bed742}</Project>
      <Name>CompanyName.Model</Name>
</ProjectReference>

The CompanyName.Model reference works fine and it's the CompanyName.Core that is apparently missing.

So far I've tried:

  • Cleaning and building the solution
  • Opening and Closing Visual Studio
  • Removing and Re-adding the reference

Solution

  • Please, check the framework of the assemblies refered.
    It seems that the problem is due to framework mismatch.