ローカルで実行中にいくつかの appsetting キーの値を変更しようとしています。
だから、私はそれらのキーを持つ元の Web.config を持っています
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="config" value="Release" />
</appSettings>
web.debug.config の「config」キーの値を変更しようとしています。
<?xml version="1.0"?>
<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="config" value="Debug" xdt:Transform="Replace" xdt:Locator="Match(key)" />
</appSettings>
<system.web>
</system.web>
</configuration>
VSを使用してローカルでプロジェクトを実行している場合:
config の値を出力していて、常に web.config の値を表示していますが、web.debug.config で変換のプレビューをクリックすると、次のように表示されます。
web.debug.config から情報を選択してローカルで動作させるにはどうすればよいですか?