From acce65c680bf1bf8449bd391e0138b79f4912b4e Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 13 Oct 2015 14:19:09 -0700 Subject: [PATCH] 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. --- scripts/HelloWorld.cs | 9 +++++++++ scripts/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/HelloWorld.cs diff --git a/scripts/HelloWorld.cs b/scripts/HelloWorld.cs new file mode 100644 index 0000000000..49fe647088 --- /dev/null +++ b/scripts/HelloWorld.cs @@ -0,0 +1,9 @@ +using System; + +internal class Program +{ + private static void Main() + { + Console.WriteLine("Hello World!"); + } +} diff --git a/scripts/Makefile b/scripts/Makefile index ed3d0649d1..a8bff344ad 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -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