Microsoft documentation for adding a project reference in the same Visual Studio solution is to right click on the project in Solution Explorer, select Add, References, Add project reference.

This only works for .NET Core projects.


For this tip, there will be naysayers so I will head this off by saying, sure this tip can be a problem for those with fumble fingers.


You have one or two classes projects and a main project which requires project references to the two class projects.

In Solution Explorer, select the two class projects by holding down the control key and single click each class project. Next, drag those selected project to the main project node in Solution Explorer.

Name:  figure1.png
Views: 423
Size:  15.0 KB

Double click, in this case on MainApp to open the project file, there are now two references.

<Project Sdk="Microsoft.NET.Sdk">


    <ProjectReference Include="..\BasicsEntityCoreCodeSample\DeconstructCodeSamples.csproj" />
    <ProjectReference Include="..\WindowsFormsLibrary\WindowsFormsLibrary.csproj" />


And on a related note, a developer may add a local resource for a project by opening the resource tab, initialize followed by dragging a file on to the Resources tab, done.