protected static string GetExecutingDirectory() { var fileName = new Uri(typeof(TfsTestRepository).Assembly.CodeBase).AbsolutePath; return Path.GetDirectoryName(fileName); }