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

How to edit .csproj file

When I am compiling my .csproj file using .NET Framework 4.0 MSBUILD.EXE file, I am getting an error: “lable01” not found in the current context of “website01.csproj”. Actually, I need to add every ASP.NET page with its code-behind file’s reference. I’ve done it, it’s working fine, but the above error is pending. I hope it … Read more