在我的项目中删除硬编码的文件夹路径,我指的是一个文件夹:在WPF
string path=Path.Combine(@"E:\Per\kamlendra.sharma\Windows\main\software\my.software\my.software.Server\Resources", string.Format("LocalizationDictionary.{0}.xaml", SelectedNewLanguage.culture));
但我不想硬编码这个地址:
@"E:\Per\kamlendra.sharma\Windows\main\software\my.software\my.software.Server\Resources"
谁能请建议更好的方法?
你想获得应用程序的路径都IO.Path.GetDirectoryName(Application.ExecutablePath)? – Cynede 2012-04-19 06:03:01
你想使用最终的路径? – 2012-04-19 06:08:31