jam*_*orn 8 c# scriptcs visual-studio-code vscode-code-runner
我正在使用Visual Studio Code for Mac,运行扩展名CodeRunner。我有一个简单的程序:
using System;
namespace HelloWorldApplication {
class HelloWorld {
static void Main(string[] args) {
Console.WriteLine("hellowol");
}
}
}
Run Code Online (Sandbox Code Playgroud)
使用右上角的播放按钮运行它时,出现以下错误:
/bin/sh scriptcs: command not found
Run Code Online (Sandbox Code Playgroud)
然后
[Done] exited with code=127 in 0.008 seconds
Run Code Online (Sandbox Code Playgroud)
程序未显示所需的输出。
编辑:非常感谢@VonC。他的方法行得通。 任何人的专业提示:使用安装脚本
brew install scriptcs
Run Code Online (Sandbox Code Playgroud)
考虑的先决条件为filipw/vscode-scriptcs-runner如下:
scriptcs应该安装在你的机器上。
确保从 scriptcs 所在的 shell 会话启动 VSCode $PATH(意思which scriptcs是不返回空输出)
| 归档时间: |
|
| 查看次数: |
4872 次 |
| 最近记录: |