Add basic Hello World program for easier testing

We can use this to assert simple things about .NET Core (our build in
particular) for easier debugging.
This commit is contained in:
Andrew Schwartzmeyer 2015-10-13 14:19:09 -07:00
parent 3284c33f85
commit acce65c680
2 changed files with 10 additions and 1 deletions

9
scripts/HelloWorld.cs Normal file
View file

@ -0,0 +1,9 @@
using System;
internal class Program
{
private static void Main()
{
Console.WriteLine("Hello World!");
}
}

View file

@ -185,7 +185,7 @@ run-file: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-clr
# compiles "Hello World" like executables using .NET Core
%.exe: %.cs prepare internal-prepare-clr
$(CSC) -out:$@ $(CSCOPTS_BASE) -target:exe $(COREREF) $<
@echo run with monad-tty ./scripts/exec_env/coreclr/corerun ./scripts/$@
@echo run with monad-tty ./exec_env/coreclr/corerun ./$@
run-debugclr: $(RUN_TARGETS) internal-prepare-exec_env internal-prepare-clr
PAL_DBG_CHANNELS="+LOADER.TRACE" $(APP_BASE)/runps-simple.sh get-location