.net Winform 应用程序的 app.config 文件位于何处? [英] where does a .net Winform's application's app.config file reside..?

查看:48
本文介绍了.net Winform 应用程序的 app.config 文件位于何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此链接,我们可以在 app.confi 文件中添加节点.

As per this link we can add node in app.confi file.

http://msdn.microsoft.com/en-us/library/ff602939.aspx

那么,那个文件在哪里?如果我给了某人一些 exe,我可以稍后给他一个 app.config 并要求他们放置在正确的位置 - 这样,该应用程序就会相应地运行..?

so, where does that file exist? If i have given some exe to some one , can I later give him a app.config and ask them to place in the right location - so, that application functions accordingly..?

我的应用程序是 C# .net 2.0.

My app is C# .net 2.0.

推荐答案

在与 exe 相同的文件夹中.请注意,app.config 文件应与 exe 文件同名,最后附有 .config.也就是说,如果你有一个程序 fooBar.exe,配置文件应该命名为 fooBar.exe.config.

In the same folder as the exe. Note the app.config file should be the same name as the exe with a .config stuck at the end. That is, if you had a program fooBar.exe, the config file should be named fooBar.exe.config.

这篇关于.net Winform 应用程序的 app.config 文件位于何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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