假设我想将我的应用程序从 c:\myapp.exe 移动到 d:\myapp.exe。它将丢失所有设置。如何预防?
最佳答案
我个人使用注册表来保存和加载我的设置,因此我的应用程序的位置不受影响,但如果您正在使用 User.Config 等并想修复位置,这可能会有所帮助: Can I control the location of .NET user settings to avoid losing settings on application upgrade?
关于c# - 如何使应用程序设置独立于 .exe 路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12016949/