string assemblyLoc = typeof(YourClassName).Assembly.Location;//YourClassName就是当前assembly中的Class名称
string assemblyPath = Path.GetDirectoryName(assemblyLoc);