Home All Groups Group Topic Archive Search About

create main configuration file for solution.

Author
1 Apr 2010 3:13 PM
Mr. X.
Hello.
How can I create main configuration file for my solution (Win-Form : VS
2008. VB.NET), like a general ini-file.

Thanks :)

Author
1 Apr 2010 5:41 PM
Mr. Arnold
"Mr. X." wrote:

> Hello.
> How can I create main configuration file for my solution (Win-Form : VS
> 2008. VB.NET), like a general ini-file.
>

It's called an app.config. There is a name space you can use to mainulupate
the app.config from a program.
Author
2 Apr 2010 7:23 AM
Mr. X.
I see it on the project source directory (not for solution).
I cannot see it on the release directory.

Is there any convention to read / write from app.config :
I want to use it for main application (connectionString for mySql).
When calling another exe file from the main application - should I pass the
connectionString as a parameter,
or it is preferred that each project has it's own app.config, and not pass
parameter trough?

Thanks :)

Show quoteHide quote
"Mr. Arnold" <N*@No.com> wrote in message
news:0D718AD9-9E62-4C5D-86FE-F838ECAD7B95@microsoft.com...
>
>
> "Mr. X." wrote:
>
>> Hello.
>> How can I create main configuration file for my solution (Win-Form : VS
>> 2008. VB.NET), like a general ini-file.
>>
>
> It's called an app.config. There is a name space you can use to
> mainulupate
> the app.config from a program.
>
Author
3 Apr 2010 4:03 AM
Mr. X.
Can I decrypt the app.config somehow ?

Thanks :)
Author
3 Apr 2010 4:12 AM
Mr. X.
I meant : encrypt.