dotnet --info output:
VS Code version:
C# Extension version:1.13.1
[fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
The reference assemblies for framework ".NETFramework,Version=v4.6" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
Failed to load project file 'e:\Workspace\CSharpTest\Assembly-CSharp.csproj'.
e:\Workspace\CSharpTest\Assembly-CSharp.csproj
This is a duplicate of #1888. You might trying downloading and installing the .NET Framework 4.6 target pack from https://www.microsoft.com/en-us/download/details.aspx?id=48136.
It's work,thank you.
excellent! Thanks for confirming.
I have a similar issue but running on Ubuntu 16.04. Is there a solution for VScode Linux based?
In Mac downloading the .NET famework solved the issue https://www.microsoft.com/net/learn/get-started/macos#macos
I have a similar issue but running on Ubuntu 16.04. Is there a solution for VScode Linux based?
Installing the latest version of Mono on Ubuntu 18.04 fixed the error "The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found." for me.
^ Also in addition to that make sure to add the PPA for mono because the default repository doesnt have the latest one.
Most helpful comment
I have a similar issue but running on Ubuntu 16.04. Is there a solution for VScode Linux based?