29
I'm a .NET user, and my goal is as simple as finding the absolute path of the directory of my main executing assembly (the EXE file).
I have several candidates:
Assembly.GetExecutingAssembly().CodeBaseAssembly.GetExecutingAssembly().LocationAppDomain.CurrentDomain.BaseDirectory
If to judge by the .NET documentation - I'm leaning towards CodeBase.
Can anyone shed light over all three in a bit more specific terms than the .NET documentation? An example to demonstrate the difference perhaps?