C#获取当前DLL的运行路径
string assemblyLoc = typeof(YourClassName).Assembly.Location;//YourClassName就是当前assembly中的Class名称
string assemblyPath = Path.GetDirectoryName(assemblyLoc);
string assemblyLoc = typeof(YourClassName).Assembly.Location;//YourClassName就是当前assembly中的Class名称
string assemblyPath = Path.GetDirectoryName(assemblyLoc);