473,695 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16549
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.co m> wrote in message
news:er******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP02.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
933
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 have used Regasm and registered the assembly in the registry with CODEBASE option. eg: regasm myDll.dll /tlb:myDll.tlb /codebase
2
1945
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 is passing testing, fine. All goes well, right up to the point where I want to make the install script set up the initial values in the config file, based on part of the installation script values and text box values from a form in the install...
1
1028
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 syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. ...
4
2807
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 = DataLayer (DLL) I have referenced all of the other projects in the first project so that I could use the objects I've created in them. However, I am running in
8
3716
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 files strings.resx (English text) and strings.de.resx for the German texts.
2
11990
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 whizbang DataSet generation tools to create some datasets, etc in your DataLayer project. When you setup a connection string it adds a settings.settings file and na app.config to the project which holds the connection string. Essentially the...
0
1820
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 that simply by using custom actions . 1st create setup and deployment project... add->new project->windows application name it ReadmeDilogue now customize Form as per ur requirement now again
2
2786
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 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 /...
12
13429
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 file was built by draging tables from the Data Sources pane. Auto-generated code created the files associated wtih the XSD file (xss,
0
9115
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8825
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7661
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6491
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5839
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3003
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.