先贴一下错误
[fail]: OmniSharp.MSBuild.ProjectLoader
The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
安装了c#需要的几个插件,在写c#代码时报的错误信息,这里提示的是安装.Net Framework 4.7.1,找了半天没有这个版本的osx安装包,装了最新的也无济于事,后来在github上找到了解决办法:
在VSCode的设置里,找到“扩展”->"C# configuration",然后在右侧找到Use Global Mono,把下面的选项改成always即可。
还有,记得装mono,用brew install mono就可以。