The C# extension no longer ships with an included Mono & MSBuild Tools
.NET Framework builds of OmniSharp no longer ship with Mono or the MSBuild tooling (See announcement omnisharp-roslyn#2339). To ensure that the C# extension remains usable out of the box for .NET SDK projects, we have changed the default value of omnisharp.useModernNet
to true
.
If you still need Unity or .NET Framework support, you can set omnisharp.useModernNet
to false
in your VS Code settings and restart OmniSharp. Please see the Requirements section above to ensure necessary tooling is installed.
C#扩展不再附带Mono和MSBuild工具
OmniSharp的.NET Framework版本不再附带Mono或MSBuild工具(请参见公告OmniSharp roslyn#2339)。为了确保C#扩展在.NETSDK项目中仍然可用,我们更改了omnisharp的默认值。useModernNet设置为true。
如果您仍然需要Unity或.NETFramework支持,可以设置omnisharp。在VS代码设置中使用ModernNet设置为false,然后重新启动OmniSharp。
Requirements
- .NET 6 SDK or newer when
omnisharp.useModernNet
is set totrue
(the default value). - A Full Framework runtime and MSBuild tooling when
omnisharp.useModernNet
is set tofalse
.- Windows: .NET Framework along with MSBuild Tools
要想默认输出到调试控制台,只需将launch.json中console一项的配置改为internalConsole即可。console有效的三种配置:
internalConsole:内部控制台。
integratedTerminal:内部终端。
externalTerminal:外部终端。
{
"id": "OmniSharp",
"description": "OmniSharp for Windows (.NET 4.7.2 / x64)",
"url": "https://roslynomnisharp.blob.core.windows.net/releases/1.39.2/omnisharp-win-x64-1.39.2.zip",
"installPath": ".omnisharp/1.39.2",
"platforms": [
"win32"
],
"architectures": [
"x86_64"
],
"installTestPath": "./.omnisharp/1.39.2/OmniSharp.exe",
"platformId": "win-x64",
"isFramework": true,
"integrity": "2C7557017C95AF49853B7073D560A93C4BC80DC5DCEC08E85C95E24C1ABD7DF1"
},