开发者

How to determine the folder where extension is executed from?

开发者 https://www.devze.com 2022-12-20 14:53 出处:网络
I\'m writing some extension and I need to pull out data from the file that is included into vsix. But if I\'ll use Environment.CurrentDirectory I will not have this file because this folder points to

I'm writing some extension and I need to pull out data from the file that is included into vsix. But if I'll use Environment.CurrentDirectory I will not have this file because this folder points to VS开发者_开发问答 folder not on the extension's one. How can I define it in a run-time?


System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase get the path to the executing dll.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号