Configuration File in C# default location?

一个人想着一个人 提交于 2019-12-06 03:38:19

It should be getting copied into the Debug/Release folders automatically. However, you could try explicitly setting the "Copy to output directory" in the properties to Copy always and see if it appears.

After creating simple WPF project my solution look like this. App.config lies there, which is the configuration file itself

When you build your solution, which in my case is named as WpfApplication1, config file lies at WpfApplication1.exe.config in \WpfApplication1\bin\Debug\ folder.

When you build your application,it automatically gets copies to debug/Release Folder.just look for *.config file in those folders.

If you build your project you should have a file named foo.bar.exe.config in you binary directory. The app.config file itself should be visible within your solution directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!