疑难解决
问题:调试时无法接受来自Console.ReadLine()
之类函数的标准输入。
解决:打开调试器配置文件launch.json
,将console
设置为integratedTerminal
。然后就可在TERMINAL
中进行IO操作。
Q: Standard input functions like Console.ReadLine()
don't work while debug.
A: Open and edit the debug-configuration-file launch.json
, set console
as integratedTerminal
. Now we can read or write in TERMINAL
.
问题:Microsoft C# 扩展异常,语义分析、自动补全等功能失效。Omnisharp警告:
omnisharp
Microsoft.Common.props
not found
解决:安装dotnet core,使用dotnet core提供的Microsoft.Common.props
进行替代。
Q: C# Extension by Microsoft crashes. Features including Intelligence don't work. Omnisharp alert:
omnisharp
Microsoft.Common.props
not found
A: Install dotnet core, and replace file with link of file Microsoft.Common.props
provided by dotnet core.