C# 获取一个dll 所在位置的方法

2019年11月28日 2781点热度 0人点赞 0条评论
内容纲要
Path.GetDirectoryName(typeof(OneClass).Assembly.Location)

OneClass 是这个 dll 内的一个类型。

Directory.GetCurrentDirectory() 获取的不一定是当前 dll 的位置

痴者工良

高级程序员劝退师

文章评论