Mono & WInforms on OS X

I just started to learn the mono winforms environment, and I cannot decide how to start the program from monodevelop without starting a console session.

My simple program works fine, but when it leaves the terminal session, it is always created and waits for me to press any key. I suppose that I could arrange things so that the terminal window closes automatically, but I would prefer the application to just start "initially", is this possible or does the mono and .net function work?

As shown in the examples in Zetcode , in 'Main' the rest of the code begins with 'application.run (new aFunction ()); ', I thought this could be the reason for the terminal session, but replacing it:

 myNewClass n = new myNewClass(); n.aFunction(); 

causes the program to not start at all (or maybe just exit without doing anything).

I am an experienced programmer, but not familiar at all with C # or the mono / .net environment, so the “definition of the obvious” may be all that is required in the answer.

+6
source share
1 answer

MonoDevelop usually allows you to run a program with or without it running on an external console.

In MonoDevelop 2.8 on Linux, you can control this by contextually clicking on a project in the decision tree and selecting Options ; then Run on the external console in the Run section. I'm not sure if you can disable this on OSX.

+3
source

Source: https://habr.com/ru/post/901830/


All Articles