473,394 Members | 1,706 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,394 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
5 16505
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
The short answer is to just manually add the files you want, Dlls, config
files, whatever. Drag the files into the appropriate folder. This seems to
be a common general issue, the definition of project output. I've never
quite understood why it's popular because when you use it you won't know
what files are actually being installed until you've run the MSI setup.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"MJB" <mb*@email.com> wrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...

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 7 '06 #4
MJB
Phil,

Thanks for the information - though it's not what I was hoping for
;). It makes creating a manageable install package somewhat difficult.
Hopefully someone on the .Net/MSI team is reading this.....

Thanks,
Matt
Phil Wilson wrote:
The short answer is to just manually add the files you want, Dlls, config
files, whatever. Drag the files into the appropriate folder. This seems to
be a common general issue, the definition of project output. I've never
quite understood why it's popular because when you use it you won't know
what files are actually being installed until you've run the MSI setup.

news:er**************@TK2MSFTNGP02.phx.gbl...

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 7 '06 #5
MJB wrote:
Hopefully someone on the .Net/MSI team is reading this.....


Why don't you post it to the Feedback center so they will be sure to
see it?

http://lab.msdn.microsoft.com/productfeedback

Jun 7 '06 #6

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...
2
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...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.