Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Config file is appearing in bin folder after publishing

Tags:

c#

asp.net

I currently have a configuration file located in the root folder of my project. For some reason, whenever I go to publish the 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 do I change it so that it doesn't appear in my bin folder?

like image 712
The Vanilla Thrilla Avatar asked Feb 27 '13 16:02

The Vanilla Thrilla


1 Answers

Try making the Copy to Output Directory = Do not copy and Build Action = Content. Do this only for your config file.

like image 120
gunr2171 Avatar answered Nov 14 '22 07:11

gunr2171