How can I tell if my application has been bundled with Mono instead of executed with Mono?

StackOverflow https://stackoverflow.com/questions/12932910

  •  07-07-2021
  •  | 
  •  

Pregunta

How do I check whether my application has been started with mono (mono MyProgram.exe) or if it has been bundled with the mono runtime embedded using mkbundle or similar?

¿Fue útil?

Solución

IsBundled = (typeof(int).Assembly.Location == "mscorlib.dll");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top