Settings independent of assembly version

  • Thread starter Thread starter Jarod
  • Start date Start date
J

Jarod

Hello,

is there a way to save settings independent of the assembly version?
..NET always stores the file user.config below a directory that has the
name of the assembly version. When the version of an application
changes, the file is written to a new directory and read from there.
With this behaviour a new version of an application cannot apply
settings that were saved with an older version of that application! Is
there a solution to have this version independent?


Jarod
 
Jarod said:
Hello,

is there a way to save settings independent of the assembly version?
.NET always stores the file user.config below a directory that has the
name of the assembly version. When the version of an application
changes, the file is written to a new directory and read from there.
With this behaviour a new version of an application cannot apply
settings that were saved with an older version of that application! Is
there a solution to have this version independent?

AFIAK there's no straightforward way to do it within the built-in settings
machinery. You'd have to make your installer hunt for the file in the "old"
place and update it (as needed), saving a copy to the "new" place.

-cd
 
But I think during development of an application this is not very nice
as with every build, the version number is increased and a lot of
folders and settings files are created over the time.


Jraod
 
Jarod said:
But I think during development of an application this is not very nice
as with every build, the version number is increased and a lot of
folders and settings files are created over the time.

If you're unhappy with it, I'd suggest submitting (or finding and voting on)
a suggestion to change it at

http://lab.msdn.microsoft.com/productfeedback

I agree - it's pretty lame the way it is. Very easy to use, but rife with
problems for real-world applications.

-cd
 
Back
Top