I need to get all dlls in my application root directory. What is the best way to do that?
string root = Application.StartupPath;
Or,
I use
Path.GetDirectoryName(new Uri(Assembly.GetEntryAssembly().CodeBase).LocalPath)
The Assembly.Location will point to the shadow copy if you use shadow copying, so using CodeBase is a better option, but CodeBase is a Url.