两个配置文件 [英] two config files

查看:67
本文介绍了两个配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




是否有可能在一个文件夹中有两个配置文件(不仅仅是web.config)?

我需要另一个用于连接字符串到DB


谢谢

Vaclav

Hi

Is it possible to have two config files (not just web.config) in one folder?
I need the other one for connection string to the DB

Thank you
Vaclav

推荐答案

你可以拥有你想要的多少,但你必须自己处理它们。

服务器只处理web.config。


Vaclav < no@spam.please>在消息中写道

新闻:O#************* @ TK2MSFTNGP14.phx.gbl ...
You can have as many as you want, but you have to process them yourself.
The server only processes the web.config.

"Vaclav" <no@spam.please> wrote in message
news:O#*************@TK2MSFTNGP14.phx.gbl...


是否可以在一个
文件夹中有两个配置文件(不仅仅是web.config)?我需要另一个连接字符串给DB

谢谢
Vaclav
Hi

Is it possible to have two config files (not just web.config) in one folder? I need the other one for connection string to the DB

Thank you
Vaclav



你好,

拥有两个配置文件可能比拥有一个更好。如果你在web.config中保留一切

并尝试从中更改任何位,应用程序将重新启动

。这在生产服务器上可能不太好。所以你可以分开

那些必须在单独的配置文件中改变的位。


谢谢你


Vaclav写道:
Hi,

Having two config files can be better than having one. If u keep everything
in web.config and try to change any bit from it, application will be
restarted. This may not be good on production server. So u can separate out
those bits which are bound to change in separate config file.

Thanks you

"Vaclav" wrote:


是否有可能在一个文件夹中有两个配置文件(不仅仅是web.config)?
我需要另一个一个用于连接到DB的字符串

谢谢
Vaclav
Hi

Is it possible to have two config files (not just web.config) in one folder?
I need the other one for connection string to the DB

Thank you
Vaclav



非常感谢。

我在某处读到可以在

普通web.config中包含一个小配置文件,然后就不需要单独处理它们了。但是

我找不到语法怎么做。


Vaclav

" Peter Rilling" < PE *** @ nospam.rilling.net> pí1vvdiskusnímp?íspìvku

news:un ************* @ TK2MSFTNGP15.phx.gbl ...
Thank you very much.
I read somewhere that it is possible to include a small config file in the
normal web.config and then there is no need to process them separately. But
I cannot find the syntax how to do it.

Vaclav
"Peter Rilling" <pe***@nospam.rilling.net> pí1e v diskusním p?íspìvku
news:un*************@TK2MSFTNGP15.phx.gbl...
你可以拥有你想要多少,但你必须自己处理它们。
服务器只处理web.config。

Vaclav < no@spam.please>在消息中写道
新闻:O#************* @ TK2MSFTNGP14.phx.gbl ...
You can have as many as you want, but you have to process them yourself.
The server only processes the web.config.

"Vaclav" <no@spam.please> wrote in message
news:O#*************@TK2MSFTNGP14.phx.gbl...


是否可以在一个
Hi

Is it possible to have two config files (not just web.config) in one


文件夹中有两个配置文件(不仅仅是web.config)?


folder?

我需要另一个连接字符串到DB

谢谢
Vaclav
I need the other one for connection string to the DB

Thank you
Vaclav




这篇关于两个配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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