I have a nanoserver container up and running. I log into the container using
> docker run -it microsoft/nanoserver powershell
Inside, I create a simple hello world exe using the following command :
PS C:\> Add-Type -outputtype consoleapplication -outputassembly helloworld.exe 'public class helloworld{public static void Main(){System.Console.WriteLine("hello world");}}'
When I run helloworld.exe, there is no output on stdout. No error log file is generated. How do I debug this? Why isn't helloworld.exe throwing the output or error on stdout? How can I debug this?
PS C:\> ls
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 8/24/2017 11:08 AM Program Files
d----- 7/16/2016 5:39 PM Program Files (x86)
d-r--- 8/8/2017 3:11 AM Users
d----- 8/24/2017 11:08 AM Windows
-a---- 8/24/2017 11:09 AM 2048 helloworld.exe
-a---- 11/20/2016 5:02 PM 1894 License.txt
PS C:\> .\helloworld.exe
PS C:\> echo %ERRORLEVEL%
%ERRORLEVEL%