Your project does not reference “.NETFramework,Version=v4.6.2” framework. Add a reference to “.NETFramework,Version=v4.6.2” in the “TargetFrameworks”

I can’t run my unit tests. I have the next error: Your project does not reference “.NETFramework,Version=v4.6.2” framework. Add a reference to “.NETFramework,Version=v4.6.2” in the “TargetFrameworks” property of your project file and then re-run NuGet restore. In app.config: <startup> <supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.6.2″/> </startup> In Project > Properties > Application > TargetFramework (.NET Framework 4.6.2) How … Read more

You must add a reference to assembly ‘netstandard, Version=2.0.0.0

The project is an ASP.NET MVC Web App targeting the .NET Framework 4.6.1. All of a sudden (some NuGet packages were upgraded) I started to get the following error during runtime: CS0012: The type ‘System.Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. … Read more