472,353 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

can I have one app.config for C#.NET solution with multiple projects

RK
Hi

I am working on C# application, where in I may require just one
app.config for the C#.NET solution with multiple windows application
projects. I know one web.config can be used for multiple projects, can
I use app.config is the same way??

thanx in advance.
RK
Jul 21 '05 #1
1 5302
>I am working on C# application, where in I may require just one
app.config for the C#.NET solution with multiple windows application
projects. I know one web.config can be used for multiple projects, can
I use app.config is the same way??


Not out of the box, completely anyway.....

You can

a) put most of your common settings into a "common.config" file, and
reference that from all your project .config files, by means of:

<appSettings file="common.config">
......
</appSettings>

or

b) You can use a third-party or custom-made config class, which allows
you to specify what .config file to load. Search e.g.
www.codeproject.com for samples - there are quite a few out there!
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #2

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

Similar topics

0
by: Andy G | last post by:
I'm reading contradicting statements from Microsoft. This is very confusing and I am having a hell of a time with running multiple projects within...
3
by: Alfredo Barrientos | last post by:
Hi, I am trying to debug a internet solution with 4 kind of projects: 1. Presentation Layer: ASP.Net Pages 2. Service Interface Layer: Web...
2
by: Samuel L Matzen | last post by:
Hi, I am trying to develop with multiple projects in a single solution. The many of these projects create .dlls that are used by other projects....
1
by: RK | last post by:
Hi I am working on C# application, where in I may require just one app.config for the C#.NET solution with multiple windows application...
1
by: Mark Rae | last post by:
Hi, Am currently in the process of migrating a whole heap of v1.1 ASP.NET solutions to v2.0, and would be interested to know what others are...
5
by: Eric | last post by:
After attempting to build a solution, I receive the error message; "One or more dependent assemblies have version conflicts" "Do you want to fix...
1
by: Matt F | last post by:
Two of the projects in my solution that both need to use a common user.config file. This is a data application - the executable that is created...
6
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the...
4
by: olduncleamos | last post by:
I am trying to share one config file between multiple console apps. Is there anyway I can set the config file name for the current application? ...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.