开发者

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

I'm 开发者_如何学JAVAready 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜