VS2010 の使用
私のweb.configには次のものがあります(詳細は削除されています)。
<system.serviceModel>
<behaviors />
<services />
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
<bindings />
<client />
</system.serviceModel>
appSettings が別の構成ファイルからこれらの要素の詳細を取得するために使用できるのと同じ属性 configSource を使用したいと思います。
configSource 属性を system.serviceModel または各サブノードに適用しようとしました。ただし、次のような無効な青い波線が表示されます。
The 'configSource' attribute is not allowed
この質問の2番目の回答(Tom Brothersによる)を参照して、私が何を望んでいるのかを示します。
web.config は外部 xml ファイルから読み取ることができますか?
追加
これはその投稿の構成です。無効な青い波線があります。
<connectionStrings configSource="web\config\connectionStrings.config" />
<appSettings configSource="web\config\appSettings.config" />
<system.diagnostics configSource="web\config\diagnostics.config" />
<system.serviceModel>
<bindings configSource="web\config\serviceModelBindings.config" />
<behaviors configSource="web\config\serviceModelBehaviors.config" />
<services configSource="web\config\serviceModelServices.config" />
<client configSource="web\config\serviceModelClient.config" />
</system.serviceModel>
この場合、configSource 属性をどのように使用できますか?