I have an MVC app which targets .NET f/w 4.5.2. I was copying over some files from a .NET core app on a previous branch. I installed a few npm packages on the previous branch. Now on my new clean branch which I just created from develop, VS is returning the following error:
Severity Code Description Project File Line Suppression State
Error Your project is not referencing the ".NETFramework,Version=v4.5.2" framework. Add a reference to ".NETFramework,Version=v4.5.2" in the "frameworks" section of your project.json, and then re-run NuGet restore. MyCompany.Website
I found the answer in another thread. Look for a project.lock.json file then delete it. Issue fixed.