App.config中主场迎战AppName.exe.Config [英] App.Config vs. AppName.exe.Config

查看:206
本文介绍了App.config中主场迎战AppName.exe.Config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个Windows服务应用程序,具有存储在app.config中的配置数据。然而,我注意到,当我建立我的应用程序中的AppName.Exe.Config产生。

I'm building a Windows Service app that has configuration data stored in App.Config. However, I noticed that when I build my application a AppName.Exe.Config is generated.

谁能告诉我这两个文件之间的关系?是AppName.Exe.Config文件我安装的,而不是在app.config我的Windows服务应用程序,?

Can someone tell me the relationship between these two files? Is the AppName.Exe.Config file what I install with my Windows Service app, instead of the app.config?

谢谢 - 兰迪

推荐答案

的app.config是在开发环境中使用的文件。 AppName.exe.config是当你的应用程序部署中使用的app.config文件。

App.Config is the file used in your development environment. AppName.exe.config is the app.config file used when your app is deployed.

这篇关于App.config中主场迎战AppName.exe.Config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆