When I open a C# project in Visual Studio 2019, none of the references are loading. In the error list it says:
The referenced component could not be found
This usually means you need to restore the Nuget Package. In this case, it’s even showing this for .NET Framework references – such as System.Core.
I opened the .csproj file and saw an invalid imported project. This will be specific to your project, but for me the invalid imported project is NUnit3TestAdapter. To fix my problem, I had to manually remove references to this from the .csproj file.
- Open the .csproj file in Notepad
- Delete the invalid Import Project section
- Delete the invalid Target section
- Save the changes