Path.GetDirectoryName(typeof(OneClass).Assembly.Location)
OneClass 是这个 dll 内的一个类型。
Directory.GetCurrentDirectory() 获取的不一定是当前 dll 的位置
Directory.GetCurrentDirectory()
痴者工良
高级程序员劝退师
Δ
文章评论