阅读背景:

AppDomain.CurrentDomain.BaseDirectory和Application.ExecutablePath在实践中有什么区别?

来源:互联网 

According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I know that one has the file name and the other does not. I know that if I create a new AppDomain I can give it a different path. But removing the file name from ExecutablePath and assuming I'm only using one AppDomain, in practice, what is the difference between those two paths? Will they always be the same (again, assuming only one AppDomain)? Is there an instance when they would be different?According to the MSDN, the BaseDirectory is whe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: