C# AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别
- AppDomain.CurrentDomain.BaseDirectory 返回结果为::D:\mycode\,而Application.StartupPath 返回结果为:D:\mycode
- Application.StartupPath 只能用于WinForm窗体中,而AppDomain.CurrentDomain.BaseDirectory既可以用于WinForm窗体中,也可以用于类库DLL文件中