Cannot find an assembly reference after changing from a "Console App" to a "Console App (.Net Framework)", doesn't exist in current context?

577 Views Asked by At

Early on in my project I created a project "Console App" but later on needed to change over to a "Console App (.Net Framework)".

I've changed the output type to Class Library in my new Console App (.Net Framework), which was found to be a general problem resulting from this process

I've attempted to look into the references and comparisons with an earlier project with no errors when compiling. However, the references folder under my User Interface (TrackerUI) is beyond my current knowledge scope.

The errors are resulting from LibraryTracker not existing in the current context.

I've provided an image of the errors sub-folder "LibraryTracker" - "Program.cs" file.

Does anyone have any suggestions as to what the issue might be resulting from?

The project is part of the "Create a C# Application from Start to Finish - Complete Course"

enter image description here

1

There are 1 best solutions below

4
Chris Welton On

Click on the TrackerUI node in the solution explorer to view the xml for the .csproj directly

You should have something like this formally defining the reference. Make sure it is present and pointing at the correct path.

  <ItemGroup>
    <ProjectReference Include="..\LibraryTracker\LibraryTracker.csproj" />
  </ItemGroup>