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
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

IsBundled = (typeof(int).Assembly.Location == "mscorlib.dll");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top