app.config missing in setup

  • Thread starter Thread starter Pieter
  • Start date Start date
P

Pieter

Hi,

When building my C#-dll, it creates the MyApplication.dll.config in the
Release\bin\-directory.
But when installing via a Setup, it doesn't copy this file.

Any idea why this could happen? and a solution?

Thanks a lot in advance,

Pieter
 
Hi,


Pieter said:
Hi,

When building my C#-dll, it creates the MyApplication.dll.config in the
Release\bin\-directory.

Not, it does not, a dll does not have a config associated.
 
Ok thanks!
and what if I add it manually, and I want to force it to read a given
app.config-file, how do I have to do that?
 
Nezver mind, I did it with an XML-file:

XmlDocument doc = new XmlDocument();

doc.Load(My.DirectoryPath + "\\" + "settings.xml");

XmlNode node =
doc.SelectSingleNode("settings/MainConnectionString");

DocControl.clsDocShared.GlobalDoc.ConnectionString =
node.InnerText;
 
Back
Top