无法在 OS X 上的 Visual Studio Code 中运行命令 [英] Can't run commands within Visual Studio Code on OS X
问题描述
所以我已经启动并运行了 Visual Studio Code,据我所知,我已经安装了所有先决条件,我能够创建一个 ASP.NET 5 项目并通过键入来运行网站dnx web 在我的终端中.所有这些都有效.
我遇到的问题来自 Visual Studio Code 本身当我执行 Cmd-Shift-P 并输入 DNX: 并选择恢复包时,我得到以下弹出窗口:
错误:OmniSharp 服务器未运行."
知道我做错了什么或需要配置什么吗?
谢谢
没关系,找到答案了.
Mono 没有正确安装.我卸载它并重新安装它.
So I've got Visual Studio Code up and running, I've got all of the pre-requisites installed as far as I can tell, I was able to create an ASP.NET 5 project and run the website by typing dnx web in my Terminal. All of that works.
The problem I am having is from within Visual Studio Code itself When I do Cmd-Shift-P and type DNX: and select Restore Packages I get the following popup:
"Error: OmniSharp server is not running."
Any ideas what I did wrong or what needs to be configured?
Thanks
Never mind, found the answer.
Can't start Omnisharp because of mono version
Mono wasn't installed properly. I uninstalled it and reinstalled it.
这篇关于无法在 OS X 上的 Visual Studio Code 中运行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!