• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1582
  • Last Modified:

C# deploying DLL Config files

I have a C# .Net application deployed through ClickOnce deployment.  It consists of an .EXE component and a number of DLL components.  Many of the DLL components have configuration settings which produce a DLL.Config file in Visual Studio.  However, when I publish the application, the DLL.Config files do not get deployed.  Somehow the DLLs know what the configuration settings were.  My questions are, how do the DLLs know what the settings are and is there a way to deploy the DLL.Config files so that they can be modified outside the development environment?
0
pwiginton
Asked:
pwiginton
  • 4
  • 2
1 Solution
 
silemoneCommented:
well you can use the publish option and can publish with option to leave files editable...then you would move the folder over manually...
0
 
pwigintonAuthor Commented:
Thanks for your reply.  Could you elaborate with a little more detail on your recommended approach?
0
 
silemoneCommented:
this is for a web app?
using vs2005 or 2008?

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
pwigintonAuthor Commented:
It is a Windows app using VS 2008.
0
 
silemoneCommented:
oops...my way is for web apps...
0
 
silemoneCommented:
with clickonce, i think it was made for convenience with the removal of some functionality such as allowing editable code.
0
 
hdesoukyCommented:
for dlls configuration can' be in there separate dll.config, since the dotnet framekwork will try to locate these dlls configuration in the main application running.

To solve this merge your dlls configuration enties in your main application configuration file.

to do this insert the dlls configuration sections to the applicaiton configuration sections and add the dll configuration settings to the application confiugration node
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now