473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Settings file location by version --- WHY???

Ok now I guess I am supposed to save my user setting in the new setting
file. Which is placed in the users application directory under the company
name based on version number. I really truly don't understand the logic
behind this unless MS assume every other company waits half a decade to
release new software.

First of all is there some method of migrating from the last installed
version?

Second debugging is a real pain... every time I make a change to the
application it forgets all the setting and I have to start over.

The of course my customers really don't want to have to reset all their
setting every time they reinstall.

My system currently has 25 directories for setting files which unless I
manually delete them will stay forever. This seems like the same logic MS
did with registry values, I have 100s of those items, it's no wonder the
registry on so many computers is screwed up.

Could someone please explain why?

Regards,
John
Dec 9 '05 #1
2 1228
I can't help you solve the root problem (where the settings file is
stored), but I can help you make it easier on yourself.

In AssemlbyInfo.cs, notice that the AssemblyVersion attribute is set to
auto-increment every time you build. This is very bad, and considered by
many to be a bug in Visual Studio. You should only be incrementing your
assembly version for distinct "releases" of your code, since the version
is considered part of the code identity. Needlessly incrementing the
version number causes a LOT of problems, including the one you've
discovered.

Your customers still have the problem in that they lose all of their
settings when you deploye 2.0.0.0 over 1.0.0.0, but at least you won't
have that problem during development, where you really don't need to
differentiate between 1.0.2342.1234 and 1.0.2345.5212.
John J. Hughes II wrote:
Ok now I guess I am supposed to save my user setting in the new setting
file. Which is placed in the users application directory under the company
name based on version number. I really truly don't understand the logic
behind this unless MS assume every other company waits half a decade to
release new software.

First of all is there some method of migrating from the last installed
version?

Second debugging is a real pain... every time I make a change to the
application it forgets all the setting and I have to start over.

The of course my customers really don't want to have to reset all their
setting every time they reinstall.

My system currently has 25 directories for setting files which unless I
manually delete them will stay forever. This seems like the same logic MS
did with registry values, I have 100s of those items, it's no wonder the
registry on so many computers is screwed up.

Could someone please explain why?

Regards,
John

Dec 9 '05 #2
Thanks for the response. I can see you point but if I can't fix the problem
for my customers then its pointless. Oh well I guess I will continued to
handle it directly.

Regards,
John

"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
I can't help you solve the root problem (where the settings file is
stored), but I can help you make it easier on yourself.

In AssemlbyInfo.cs, notice that the AssemblyVersion attribute is set to
auto-increment every time you build. This is very bad, and considered by
many to be a bug in Visual Studio. You should only be incrementing your
assembly version for distinct "releases" of your code, since the version
is considered part of the code identity. Needlessly incrementing the
version number causes a LOT of problems, including the one you've
discovered.

Your customers still have the problem in that they lose all of their
settings when you deploye 2.0.0.0 over 1.0.0.0, but at least you won't
have that problem during development, where you really don't need to
differentiate between 1.0.2342.1234 and 1.0.2345.5212.
John J. Hughes II wrote:
Ok now I guess I am supposed to save my user setting in the new setting
file. Which is placed in the users application directory under the
company name based on version number. I really truly don't understand
the logic behind this unless MS assume every other company waits half a
decade to release new software.

First of all is there some method of migrating from the last installed
version?

Second debugging is a real pain... every time I make a change to the
application it forgets all the setting and I have to start over.

The of course my customers really don't want to have to reset all their
setting every time they reinstall.

My system currently has 25 directories for setting files which unless I
manually delete them will stay forever. This seems like the same logic
MS did with registry values, I have 100s of those items, it's no wonder
the registry on so many computers is screwed up.

Could someone please explain why?

Regards,
John

Dec 10 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dan | last post by:
I have an app that communicates over the Internet through API calls to the wininet DLL. I can determine whether IE has a proxy server configured (not the setting, just whether it uses a proxy...
7
by: MrNobody | last post by:
I was a Java developer so I'm used to using property files as a means to keep configuration settings for my apps. I'm wondering what options are there with ..NET? Some settings I want to include...
7
by: Kirk | last post by:
Hello, I am trying to find a VB.NET method that will allow me to save and read an application's settings in a separate file located on any drive, any folder. I have found a couple of methods...
3
by: Jason Kendall | last post by:
I've recently installed Beta 2 ov Visual Studio and an updating a few small applications as a way to get my feet wet with some of the new functionality. There are many new features which are...
10
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version....
5
by: Andy | last post by:
I need to write a VB.NET WinForms app. For this purpose I need to keep some settings of the application, like many other Windows applications do. The most obvious solution is to store settings in...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
4
by: John | last post by:
Hi I need to store the path to db in my app. I have used app setting for this. Unfortunately various clients have different db paths and I have set them up once on each client location. The...
5
by: Steve Barnett | last post by:
I added some user settings to my app which caused the Settings.settings to be generated etc... and all was well and lovely and the Sun was shining. Then I changed the version number of my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.