且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使应用程序设置独立的.exe文件的路径?

更新时间:2023-10-09 17:54:10

我个人使用注册表来保存和载入我的设置,所以我的应用程序的位置不会受到影响,但如果你使用User.Config等而要修复的位置,这可能帮助: Can我控制.NET用户设置的位置,以避免失去对应用程序的设置升级?

Personally I use the registry to save and load my settings, so the location of my application isn't affected, but if you're using User.Config etc and want to fix the location, this might help: Can I control the location of .NET user settings to avoid losing settings on application upgrade?