MVCアプリケーションには、開発環境用にセットアップされたweb.configがあり、新しいWCFサービスエンドポイントを挿入する必要がある変換ファイルがありますが、間違った場所に追加されているため、何かを見逃していると思います。
必要なものだけを表示するために、構成ファイルを削減しました。
私は次のように通常のweb.configを持っています:
<services>
<!-- Report Service -->
<service name="Core.ReportDataHost">
<endpoint name="ReportDataHost" address="..." binding="customBinding" contract="..."/>
</service>
<!-- Authentication Service -->
<service name="Core.AuthenticationHost">
<endpoint name="AuthenticationHost" address="..." binding="customBinding" contract="..."/>
</service>
</services>
次に、次のように変換ファイルを作成します。
<services>
<service name="Core.AuthenticationHost">
<endpoint xdt:Transform="Insert" address="" binding="customBinding" contract="..." />
</service>
</services>
これにより、「AuthenticationHost」サービスに新しいエンドポイントが追加されると期待していましたが、最初のサービス「ReportDataHost」に追加されます。
私が欠けているアイデアはありますか?