Re: create app.config during runtime from within code
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 17:29:25 -0500
Christian,
Well, if you really want to get rudimentary, you could create a FileStream instance and write it byte by byte.
But I doubt you want to do that.
Usually, the configuration sections have object models that you can access through the classes in the System.Configuration namespace. You could try working with these models in code and then persist them to another file (although because config files are not written to, except for user setting sections, it might be the case that there is not much support for going from the config object to XML, only vice versa).
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Christian Muggli" <christian.muggliATgmail.com> wrote in message news:553D705D-AB1A-4401-A4D6-A7B5310A303B@xxxxxxxxxxxxxxxx
can someone explain me how to create a app.config file during runtime? i see two ways:
- add a skeleton of an app.config file to the exe/dll and extract it during runtime as a resource and extract
OR
- create a app.config file using xml
is there another way?
thanks
christian
.
- References:
- create app.config during runtime from within code
- From: Christian Muggli
- create app.config during runtime from within code
- Prev by Date: Own assembly fails to load when vs2008 is not installed on target machine
- Next by Date: Re: Question regarding ICryptoTransform resuability
- Previous by thread: create app.config during runtime from within code
- Next by thread: RE: create app.config during runtime from within code
- Index(es):
Relevant Pages
|