The configuration file appears in the bin folder after publishing

Currently, I have a configuration file located in the root folder of my project. For some reason, whenever I go to publish a project, it creates two instances of this configuration: one in my root folder and one in my bin folder. Why is this happening and how to change it so that it does not appear in my bin folder?

+5
source share
1 answer

Try to do Copy to Output Directory = Do not copyand Build Action = Content. Do this only for your configuration file.

+12
source

All Articles