简体   繁体   中英

Is there any way to make C# application properties persist through recompiles?

The system for saving/reloading values is convenient but it has one annoying gotcha for a developer: The ID changes on every recompile and thus it's basically useless in development. Are there any easy fixes to this? Google only tells me others have the same annoyance so I doubt there's anything other than doing it myself.

Edit: David Yew is right about the file.

Have you set the version of your exe in the properties of the project? If you set this to something other than 0.0.0.0 I think it will maintain the settings for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM