Introducing Mono Confusion

I am trying to use the following instructions to embed a Mono runtime in a C ++ program. http://www.mono-project.com/Embedding_Mono

To initialize the runtime, you must call mono_jit_init with an input parameter named file_name. They say that file_name is the name of the main assembly file. - What do they mean by โ€œmain build fileโ€? Is this the name of the C # application I want to run?

A little further, they describe opening an assembly and executing it through a call to mono_domain_assembly_open. This function also takes a file name as an input parameter, and I'm confused about what this file should do. Should it be the same as the previous one?

Any help is appreciated. Thanks,

Mj

+4
source share
1 answer

mono_jit_init () accepts the file name, which is used to set the domain name (from the file name, with the exception of the directory), the documents are a bit outdated, I will fix them. The used version of the frame will be standard by default, which depends on the mono version.

If you need to initialize a specific version of the framework (2.0 or 4.0), you can use mono_jit_init_version ().

+1
source

All Articles