I recently switched from VSCode to Sublime text. My friend gave me his Build System for C# (which he borrowed from his friend), but it doesn’t work whenever I try “Run Interactive” as the project has several Console.ReadKey()
s. It doesn’t even open the terminal. However, when I tested it on a file that just wrote “Hello world!”, it worked fine.
Any ideas?
Can't Run Interactive With C#
joof
#1
0 Likes
Note that native ST build systems cannot take inputs from the user (There are numerous posts here on why, I’ll let you search for it). I’d suggest you share your build system here (The one your using) to let people here inspect it and tell you what maybe the potential issue(s).
0 Likes
joof
#3
{
“working_dir”: “${folder:${project_path:${file_path}}}”,
“selector”: “source.cs”,
"variants":
[
{
"name": "Build",
"shell_cmd": "dotnet build",
"word_wrap": false,
"quiet": true,
},
{
"name": "Clean",
"shell_cmd": "dotnet clean"
},
{
"name": "Run",
"shell_cmd": "dotnet run"
},
{
"name": "Run Interactive",
"shell_cmd": "dotnet run",
"target": "terminus_exec"
}
],
}
0 Likes
deathaxe
#4
For terminus_exec
to work, you probably want to install Terminus package, which provides an interactive shell.
0 Likes