简体   繁体   中英

.NET app.config file — does this need to be distributed with my app?

I'm ready to release my first .net app, but I'm trying to determine if the {myAppName}.exe.config file that is created at build time needs to be distributed with my app? Or will this be created if it doesn't exist?

Thanks.

What is in it? You will probably want to open it up and look and see what in there-- various design time components will modify it, often without you knowing. As soon as you have 1 dependency on the config file, you need to include it, and it is possible that the dependency originates from a framework or 3rd party assembly.

The simple answer is yes, include it. You don't want to take the chance that you don't need it. There are a number of things you might need it for. If you don't have it, your application will have issues. If you don't need it, it won't hurt anything to have it there.

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