由网友(挥剑断天下)分享简介:我试着去了解一个DLL的路径....几个网站说,香港专业教育学院使用System.Reflection.Assembly.GetExecutingAssembly()的位置,但它返回一个在C路径:\ WINDOWS \ Microsoft.Net .. 。等等... \ File.Dll Im trying to k...
我试着去了解一个DLL的路径....几个网站说,香港专业教育学院使用System.Reflection.Assembly.GetExecutingAssembly()的位置,但它返回一个在C路径: WINDOWS Microsoft.Net .. 。等等... File.Dll
Im trying to know the path of a dll.... several sites says that ive to use System.Reflection.Assembly.GetExecutingAssembly().Location BUT it returns a path in C:WindowsMicrosoft.Net ... etc... File.Dll
和我想C: MyProyect MiWeb BIN File.Dll
and i want c:MyProyectMiWebBinFile.Dll
任何帮助吗?
推荐答案
您可以使用做到这一点:
You can do this using:
string file = (new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).LocalPath;
相关推荐
最新文章