In my particular case I needed the dll config file for a WCF service client inside a MMC snapin.
For the library:
- Create a dll project. (e.g. myLibrary)
- Add a configuration file.
- Rename the configuration file as "projectName".dll.config. (e.g. myLibrary.config.dll)
- View the properties for the configuration file and set them to:
- Build action: Content (to reference later in setup)
- Copy to output: Copy always
- Create a setup project or a merge module.
- Select the Add the project output and then:
- Select primary output for the library project. (this includes the dll)
- Select project content for the library. (this includes the configuration file)
Hope can help someone with this.
Works for C# or VB.NET.
Thank you! This was what I was looking for!
ReplyDelete