Adding a project (can't see namespace) - why isn't it becoming part of the solution?

Camillia
Camillia used Ask the Experts™
on
Of course, this can't be that hard but I don't know what the project I'm adding is not becoming part of the solution.

I go step by step with screenshots

1. I added a Class Library to the solution. I right clicked on the solution to add it
p1.png
2. I got this message but I clicked Continue
p2.png
3. I saw it in solution and added a reference to it to another project in the solution

p3.png
4. Then I wanted to use the namespace but code couldn't find it
p4.png
5. I went digging in to see what's going on. Read it might be resharper so cleared the cache. Removed the reference, added it back. Compared it with another reference that's added. Then, I opened the project in notepad and saw the path is different You see ..\..\ compared to ..\

<ItemGroup>
    <ProjectReference Include="..\..\CSI.MYxyz.ViewModels\CSI.Myxyz.ViewModels.csproj">
      <Project>{f34226c8-0718-4fdf-a9e1-217e7334b1f3}</Project>
      <Name>CSI.Myxyz.ViewModels</Name>
    </ProjectReference>
    <ProjectReference Include="..\CSI.Myxyz.Shared\CSI.Myxyz.Shared.csproj">
      <Project>{2B09F5F9-AA55-4704-B32F-42F5BFCBD3A7}</Project>
      <Name>CSI.Myxyz.Shared</Name>
    </ProjectReference>
  </ItemGroup>

Open in new window


6. I see all the projects in the solution
p5.png
7. When I look at the Windows Exploere, the project I added it is not there. It's somewhere else. I wonder if this is the cause of my problem for step 4. Why isn't this newly added project where it should be...listed with all other projects? What am I missing? Why can't I reference this namespace? I doubt the location of the project is the reason why I can't reference that namespace

It's not here
p6.png
It's listed in the root

p7.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Found out what this was. The project I added had a different .Net Framework. The existing solution is 4.5.1. The one I was adding was 4.6.1.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial