Recently, I came across the following question. I start with asp.net core 2.0 and vs code. I installed VS Code 1.17.2, dotnet sdk 2.0 and the C # 1.13.0 extension from omnisharp. I created an mvc project dotnet new mvc
. When I open the vs code, I get a lot of errors on all .cs files.

I can create and run the application without any problems.

IntelliSense and debugging also work. When I see a tab with errors, I see the following error among many others:
The type "TargetFrameworkAttribute" exists as in "System.Runtime", Version = 4.2.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'and' System.Runtime, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a '

, , , . .