I need to get all dlls in my application root directory. What is the best way to do that?
string root = Application.StartupPath;
Or,
<
AppDomain.CurrentDomain.BaseDirectory is my go to way of doing so.
However:
Application.StartupPath gets the directory of your executable
AppDomain.BaseDirectory gets the directory used to resolve assemblies
Since they can be different, perhaps you want to use Application.StartupPath, unless you care about assembly resolution.