1.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RedisConfig.xml")

2.Environment.CurrentDirectory + @"\RedisConfig.xml"

第二个不靠谱