设置omnisharp支持NETFramework

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 to true (the default value).
  • A Full Framework runtime and MSBuild tooling when omnisharp.useModernNet is set to false.

要想默认输出到调试控制台,只需将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"
		},

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值