How to write configuration variable in a deployment project?

  • Thread starter Thread starter Manu
  • Start date Start date
M

Manu

I would like to gather data from the user in the startup phase. Then
to create a Configuration variable from which connection objects will
read their connection string. (Dynamic binding)
How can I assign a value to a configuration variable during deployment
phase ?
Is there another way to configure the connection strings of connection
objects during deployment? Where do I write the code?
Is there an example explaining this?
 
Manu,

I'm not quite sure what you mean by configuration variable. If you mean
the config file, then you will have to manually edit that yourself. You can
use the classes in the System.Xml namespace to do this.

As for configuring the connection strings, that's up to you. Because it
is a string, it should be easy to store anywhere you wish, a file, AD, the
registry, etc, etc.

Hope this helps.
 
Back
Top