内容纲要
Path.GetDirectoryName(typeof(OneClass).Assembly.Location)
OneClass 是这个 dll 内的一个类型。
Directory.GetCurrentDirectory()
获取的不一定是当前 dll 的位置
Path.GetDirectoryName(typeof(OneClass).Assembly.Location)
OneClass 是这个 dll 内的一个类型。
Directory.GetCurrentDirectory()
获取的不一定是当前 dll 的位置
痴者工良
高级程序员劝退师
COPYRIGHT © 2022 whuanle.cn. ALL RIGHTS RESERVED.
Theme Kratos Made By Seaton Jiang
文章评论