I am trying to write a build system that will compile and run a single C# console application and show the output somewhere.
I’m having trouble getting off the start line though.
My c-sharp.sublime-build looks like so:
{
"shell_cmd": "c:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\csc.exe", "${file}"],
"selector" : "source.cs"
}
Running it when this file is open:
[code]using System;
public class Program
{
public void Main()
{
Console.WriteLine(“Hello World!”);
}
}[/code]
Seems to do nothing at all.
I’ve tried going to absolute stage 1 and just having a build system that will echo something to the console. This is hello world.sublime-build:
{
"shell_cmd": "echo", "Hello World"]
}
Obviously still nothing, so, how do I get something to display what’s going to the console?
How do I get a source file to compile (and maybe run as well?)