executingassembly

Get directory where executed code is located

I know that in the same directory where my code is being executed some files are located. I need to find them and pass to another method: MyLib.dll Target1.dll Target2.dll Foo(new[] { "..\\..\\Target1.dll", "..\\..\\Target2.dll" }); So I call System.IO.Directory.GetFiles(path, "*.dll"). But now I need to get know the path: string pa...