user705414 user705414 - 1 year ago 93
C# Question

Can we autocopy the *.dll.config?

when refering to a library assembly, it is auto copied to the final bin directory. However the *.dll.config is not, is there a way to automatically copy this config file?

Answer Source

In Visual Studio, there's a 'properties' section when you have the active file open. For the App.config, it has a property called Copy to Output Directory, the options are

  • Do Not Copy
  • Copy if Newer
  • Copy Always

You want either the second or the third option.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download