C #: configuration file in bin \ debug folder

I kept getting errors in my log file so the messageconfig file could not be found. It turned out that my application was expecting it in the bin \ debug folder. What makes the application expect so? It seems that when the project is built, it should copy the configuration file to the bin \ debug folder. Am I missing a specific project setup?

+5
source share
4 answers

It is expected that the App / web.Config files will be in the same directory as the root application / web file.

Other related configuration files may be located in other directories, as indicated in the main configuration file.

.config, properties Copy to Ouput Directory.

Copy if Newer Copy always, Do not copy, .config debug/release, .

+14
+1

" ".

0

.exe. .

,

0

All Articles