.net Winform的应用程序的app.config文件位于何处? [英] where does a .net Winform's application's app.config file reside..?
问题描述
根据此链接,我们可以在app.confi文件中添加节点.
As per this link we can add node in app.confi file.
http://msdn.microsoft.com/en-us/library/ff602939.aspx
那么,该文件在哪里存在?如果我给某人一些可执行文件,我以后可以给他一个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屋!