That capability exists in .NET 1.1 too. I used it. The difference is, I
believe, that in 1.1 you can only have 2 levels of inclusion, whereas in 2.0
there is no such restriction. Anyone care to comment on this?

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Eric Means
Sent: Thursday, March 23, 2006 10:57 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] [C#]: Multiple SQL Servers, Multiple
Projects


You didn't say which version you're using, but in .Net 2.0 there's a way to
include settings from another .config file (which could be a single,
centralized config file), which would allow you to change a single setting
in a single file and have it be picked up by any number of apps.

Check out the section on external files here:
http://www.odetocode.com/Articles/418.aspx

On 3/23/06, Gregory Miley <[EMAIL PROTECTED]> wrote:
>
> We are developing several in-house applications, basically one master
> "shell" application with several libraries. We operate on multiple MS
> SQL Servers: Dev, QA, Training, and Production. Each project has a
> Settings entry for a connection to the development server. Our goal is
> to have a way to modify each of those entries at once to change the
> connection to one of the previously mentioned SQL Servers. Right now we
> are, somewhat successfully, reading in the settings XML file and
> changing the connection string. This works, but I would like to think
> there is a better way to do this.
>
> The solution is set up in the following way:
>
> *       MainSolution - (Solution)
> *       Application Manager - (Main Project)
> *       Settings
> *       Shared Library - (Library Project)
> *       Settings
> *       Module1 Library - (Library Project)
> *       Settings
>
> Etc..
>
> I can provide more information if needed.
>
> Thanks,
> Greg
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>



--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to