开发者

get the installation directory in c#

开发者 https://www.devze.com 2023-04-13 07:17 出处:网络
I have xml file that after 开发者_如何转开发my application installation will located in the installation dir.

I have xml file that after 开发者_如何转开发my application installation will located in the installation dir. i need the application to reed this file. how do i get the installation dir where the user install it in order to read this file. or is a better way to do it.


Assuming the assembly in which this code lies is installed to the same directory:

Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
0

精彩评论

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

关注公众号