How to get Mono command line options?

I run my application on the command line as follows:

path-to-mono/mono --debug myapp.exe
  • Is there a way to detect the presence of the -debug option (or others if I use them)?
  • Can I get the path to the mono executable from which I started the application? (I know some methods for determining the installation path, but this is not what I need.)
+4
source share
1 answer

If you are not using the Mono Deployment API, you cannot do this (you are asking how to access metadata that only the runtime knows).

+1
source

All Articles