473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

app.config (for a dll) not getting added to setup project

MJB

I have several dlls that have app.config files tied to them. When
adding their primary output to a Setup project everything works fine,
but only the app.config for the .exe gets added to the Setup project
automatically. Is there any way to get the app.configs for the dlls
added to the Setup without manually doing "Add File"? Thanks for the
assistance.

Oh, this is a windows service application and I'm using Visual Studio
2005 Prof / .Net 2.0
Jun 6 '06 #1
2 2769
AFAIK you cannot have .config files for class libraries
if you need them then they read config values at runtime from
app.exe.config file.

this is why VS 2005 add only app.config for exe's

I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

MJB wrote:
I have several dlls that have app.config files tied to them. When
adding their primary output to a Setup project everything works fine,
but only the app.config for the .exe gets added to the Setup project
automatically. Is there any way to get the app.configs for the dlls
added to the Setup without manually doing "Add File"? Thanks for the
assistance.

Oh, this is a windows service application and I'm using Visual Studio
2005 Prof / .Net 2.0


Jun 6 '06 #2
MJB

Actually that was true for .Net 1.x, but with .Net 2.0 / VS 2005 you can
have app.configs for .DLLs and/or .EXEs - basically an app.config per
project. Just right-click a project and click "properties". When you
see the properties screen select "settings" - this is where you would
create an app.config for any project. It works well too in debug mode.
The problem arises when I try to get all of my app.configs to get
bundled up with my setup. Any help would be appreciated.

Thanks

Galcho[MCSD.NET] wrote:
AFAIK you cannot have .config files for class libraries
if you need them then they read config values at runtime from
app.exe.config file.

this is why VS 2005 add only app.config for exe's

I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

MJB wrote:
I have several dlls that have app.config files tied to them. When
adding their primary output to a Setup project everything works fine,
but only the app.config for the .exe gets added to the Setup project
automatically. Is there any way to get the app.configs for the dlls
added to the Setup without manually doing "Add File"? Thanks for the
assistance.

Oh, this is a windows service application and I'm using Visual Studio
2005 Prof / .Net 2.0

Jun 6 '06 #3

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

Similar topics

2
by: Suresh Gladstone | last post by:
Hi, This is a bit with versioning and installation of the .NET dlls. I want to perform the following, 1. A third party application will be invoking my .NET dll through COM interop . For this I...
2
by: policywatcher | last post by:
So I've been really good. I've written my nice shiny new app to use a ..config file. I have code that is nicely reading (and updating as required) the settings in the .config file, and the app...
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
4
by: Ed_P. | last post by:
Hello, I have the following scenario: I have a solution with 4 projects Project1 = MainWindow (Windows EXE) Project2 = PresentationLayer (DLL) Project3 = BusinessLayer (DLL) Project4 =...
8
by: Henry | last post by:
Hi, in a Windows form VB.Net project I use localization for all texts. In App.Config I added: <appSettings> <add key="locale" value="de"/> </appSettings> In the project I have ressource...
2
by: Keith Elder | last post by:
Let's say you have a stand alone C# library project that is your datalayer. When this library compiles it will produce "My.DataLayer.dll" for example. In the project you use all the new...
0
by: shanthsp2002 | last post by:
well friends i have a small tip here which may be helpfull for u there may be situations where we need to use a customized dilogue box while doveloping setup and dyployment project, so u can do...
5
by: MJB | last post by:
I have several dlls that have app.config files tied to them. When adding their primary output to a Setup project everything works fine, but only the app.config for the .exe gets added to the Setup...
3
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.