Groups | Blog | Home
all groups > dotnet clr > august 2004 >

dotnet clr : Using same Config file for multiple projects??


Sunmax
8/5/2004 3:47:09 PM
Can we use the same App.config file for multiple projects each having a
different .exe name?

Thanks
-Sunmax

Éric Moreau [VB MVP]
8/5/2004 9:24:22 PM
I have almost stop using the app.config file.

I know use another generic configuration settings file that also supports
encryption. See it at
http://www.west-wind.com/presentations/configurationclass/configurationclass.asp

--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)


[quoted text, click to view]

Marc Scheuner [MVP ADSI]
8/6/2004 8:40:57 AM
[quoted text, click to view]

You can - to a certain extent.

You could put your common appSettings into a separate file:

common.config

<appSettings>
<add key="name" value="the value">
....... (etc,) ................
</appSettings>

and then reference that from all your multiple project's own .config
files:

project1.exe.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="common.config">
<add key="name2" value="the value2">
</appSettings>
</configuration>

That could allow you to share some of the configuration info between
several projects.

Marc

================================================================
Marc Scheuner May The Source Be With You!
AddThis Social Bookmark Button