Path.Combine(AppDomain.CurrentDomain.BaseDirectory);
string temp = "this is a string resource"; // 添加或更新资源字典 Application.Current.Resources["temp"] = temp;
C#获取起始位置以及添加全局资源字典
原文:https://www.cnblogs.com/bincoding/p/8989807.html