Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do to set run time options when embedding mono?

Tags:

mono

Like these options:

Usage is: mono [options] program [program-options]

Development:
    --aot                  Compiles the assembly to native code
    --debug[=]    Enable debugging support, use --help-debug for details
    --profile[=profiler]   Runs in profiling mode with the specified profiler module
    --trace[=EXPR]         Enable tracing, use --help-trace for details
    --help-devel           Shows more options available to developers

Runtime:
    --config FILE          Loads FILE as the Mono config
    --verbose, -v          Increases the verbosity level
    --help, -h             Show usage information
    --version, -V          Show version information
    --runtime=VERSION      Use the VERSION runtime, instead of autodetecting
    --optimize=OPT         Turns on or off a specific optimization
                           Use --list-opt to get a list of optimizations
    --security[=mode]      Turns on the unsupported security manager (off by default)
                           mode is one of cas, core-clr, verifiable or validil
like image 688
phi Avatar asked Dec 14 '25 19:12

phi


1 Answers

--config -> mono_config_parse ()

--trace -> mono_jit_set_trace_options ()

--runtime -> mono_jit_init_version ()

--verbose and --optimize -> mono_set_defaults () and mono_parse_default_optimizations ()

--profiler -> mono_profiler_load ()

like image 118
lupus Avatar answered Dec 16 '25 22:12

lupus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!