简体   繁体   中英

Visual C# missing app.config file after build

My solution has two exe apps inside. Console application ( Console.exe ) and wpf application ( MyUI.exe ). Wpf application is a startup project, and console one is a small installation tool. Both have app.config file which contains db info. I have problem with this config file after I build the solution. In bin folder I have my wpf app and config file with the same name, eg:

MyUI.exe and MyUI.exe.config. 

But there is no config file for console application. Is there any setting I should set to make it right?

When I set build action to content and copy to output... to Copy always then I have "App.config" file in bin directory, but there is no "Console.exe.config" .

没有解决方案输出文件夹这样的东西 - 每个项目都有自己的输出文件夹,其中将放置App.config(在它重命名为[exe_name].config )。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM