After updating and including some NuGet packages, I now get many compile errors similar to:
The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I looked at You must add a reference to assembly mscorlib, version=4.0.0 but I'm not running .Net core - this is an ASP.NET MVC, .Net Framework 4.7.2 Project.
There is no project.json to update. I already included the Microsoft.NETCore.Portable.Compatibility NuGet package to no effect.
What is causing this, and how can I fix it?
Update-Package -Reinstallin the NuGet console. You may need to try another clean + build after runningUpdate-Package -Reinstall. - Lews Therin/packagesfolder into source control can cause issues like this. Remove it from source control and re-download the project and try again (make sure the NuGet restore happens). - Lews Therin