472,789 Members | 1,236 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

Share configurable application settings between projects in a vsnet solution

I have a vs2005 solution containing about 5 projects, three of which
have their own .settings files.

When I deploy the application, I want all the settings to be in one
place - configurable - presumably in an app.config file where I can
edit them. The settings will be used by a windows service,
filewatcher, database access application.

How do I achieve this?

As a workaround, I have created an additional project which contains a
single static class with static property accessors pointing to values
from an internal settings file.
I've consolidated all the settings information from the other projects
into that one project. I then referenced that project from all the
others and used it's settings via the static class properties.

Does that sound like the right approach?

I just had the idea that I might be missing something. I've downloaded
the Configuration Application Block and am investigating that,
thinking that it might help me. As usual, there's bucketloads of
general information on the application block, but nothing succinct, so
I'm going to have to do the hard yards until I find something
pertinent.

Any advice would be much appreciated.

Jun 7 '07 #1
3 2108

I just had the idea that I might be missing something. I've downloaded
the Configuration Application Block and am investigating that,
thinking that it might help me. As usual, there's bucketloads of
general information on the application block, but nothing succinct, so
I'm going to have to do the hard yards until I find something
pertinent.
That's where you need to go. Why re-invent the wheel? It has it all with
examples and everything about working with App.config in just the download
for .Net 2.0. All you have to do is reference the App Block Dll(s) which are
part of VS 2005 and the .NET 2.0 Framework, or with VS 2003 and with .Net
1.1 Framework, you have to download and install CAB and add reference to the
right Dll(s) in your project.

Jun 7 '07 #2
Unfortunately it looks like there's no Configuration Application Block
in the latest offering of the Enterprise Library.
Back to the drawing board.

Jun 7 '07 #3

"Meteor" <tb******@hotmail.comwrote in message
news:11*********************@i13g2000prf.googlegro ups.com...
Unfortunately it looks like there's no Configuration Application Block
in the latest offering of the Enterprise Library.
Back to the drawing board.
Yes, there is no Enterprise Library for Framework 2.0. All of it has been
moved to the System.Configuration namespace.

http://www.dotnetfun.com/articles/fr...onManager.aspx

Every last bit as far as Configuration Application Block, is in
ConfigurationManager. I have used the Configuration Application Block
Enterprise solutions on Framework 1.1 and the ConfigurationManager on
Framework 2.0. They are the same solutions.

All you're going to get on the download for Config App Block for Framework
2.0 are documentation, examples and demos for VB and C#.NET on how to use
ConfigurationManager.

Jun 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: AARON PECORARO | last post by:
I need to split apart my web application into multiple projects to allow it to be distributed in parts, but all of the projects need to work together (ie. they need to share session information)....
2
by: TaeHo Yoo | last post by:
Hi all, I have a solution which contains multiple projects. Those multiple projects should share the same session. For example, users login, create the session for users then these session...
1
by: Macca | last post by:
Hi, I have a C# Solution/Application that contain 4 projects. Each of these projects needs at some time to access the same database. I would like to know how to share a single connection...
9
by: Andrew Shitov | last post by:
I have to copy files from one network share folder to another (both are on different remote machines). Server running this asp.net appllication is not configurable (except web.config), while...
4
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application that has been running just fine for several months without any cascading style sheets. Suddenly several users have had problems with the layout of the...
0
by: 1Cajun | last post by:
I would like to share settings between two projects in the same solution. How do i do this?
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
3
by: Meteor | last post by:
I have a vs2005 solution containing about 5 projects, three of which have their own .settings files. When I deploy the application, I want all the settings to be in one place - configurable -...
2
by: mfuribondo | last post by:
I have a solution with three projects in it. Two are windows forms applications and the third is a class library. I am trying to deploy the projects which use a single database located in one of...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.