-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb.Release.config
31 lines (27 loc) · 1.38 KB
/
Web.Release.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<!-- Web.config 変換の使用の詳細については、http://go.microsoft.com/fwlink/?LinkId=301874 を参照してください -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
以下の例では、"SetAttributes" 変換により、値が "MyDB" の属性 "name" を
"Match" ロケーターが検出した場合にのみ "connectionString" の値に
"ReleaseSQLServer" を使用するよう変更されます。
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
以下の例では、"Replace" 変換により Web.config ファイルの
<customErrors> セクション全体が置換されます。
<system.web> ノードには 1 つの customErrors セクションしかないため、
"xdt:Locator" 属性を使用する必要はありません。
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>