1

共通のサービス参照を共有するいくつかの Web サイトがあり、サービスの URL が変更されるたびに各 Web サイトの web.config ファイルを更新する必要はありません (頻繁に発生するわけではありません)。だから私はそれらの参照をC:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\Web.Configファイルに入れました。それがどれだけ賢いか自信がない。

別の方法で行う必要がありますか?

4

1 に答える 1

2

As long as you have the same references in your general Web.Config in all environments -- such as Development (developers' PC's), Test, Acceptance/Staging and then Production -- you will be fine.

The problem with shared references like this is if you put them in a centralized location, every time you need to add/modify/delete one, you must do it as a separate process (manually?) and it impacts every application.

So personally I don't advocate it. I like to keep applications as independent as possible.

于 2013-01-21T15:10:41.270 に答える