1.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RedisConfig.xml")
2.Environment.CurrentDirectory + @"RedisConfig.xml"
第二个不靠谱,https://www.cnblogs.com/rui1236/p/5047652.html