[Mono-dev] name of executable

aotto1968 aotto1968 at users.sourceforge.net
Thu May 28 11:12:42 EDT 2009


  I have the following startup code of a C# application

public abstract partial class MqS

  private static extern void MqInit(string MqMainToolName, string

  static MqS() {
    Type t = Type.GetType ("Mono.Runtime");
    if (t != null)
      MqInit("mono", Assembly.GetExecutingAssembly().Location);
      MqInit(Assembly.GetExecutingAssembly().Location, "");

I need the path of the executable (in our case mono)
-> I don't found any docs about "Mono.Runtime"

The Assembly.GetExecutingAssembly().Location return the CLR assembly and not
the "real"

  -> thanks for help

Andreas Otto
View this message in context: http://www.nabble.com/name-of-executable-tp23763825p23763825.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list