Adam Connelly | 0c0649d | 2015-12-26 15:55:05 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | Licensed to the Apache Software Foundation (ASF) under one |
| 4 | or more contributor license agreements. See the NOTICE file |
| 5 | distributed with this work for additional information |
| 6 | regarding copyright ownership. The ASF licenses this file |
| 7 | to you under the Apache License, Version 2.0 (the |
| 8 | "License"); you may not use this file except in compliance |
| 9 | with the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, |
| 14 | software distributed under the License is distributed on an |
| 15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | KIND, either express or implied. See the License for the |
| 17 | specific language governing permissions and limitations |
| 18 | under the License. |
| 19 | --> |
| 20 | <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> |
| 21 | <!-- |
| 22 | In the example below, the "SetAttributes" transform will change the value of |
| 23 | "connectionString" to use "ReleaseSQLServer" only when the "Match" locator |
| 24 | finds an attribute "name" that has a value of "MyDB". |
| 25 | |
| 26 | <connectionStrings> |
| 27 | <add name="MyDB" |
| 28 | connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" |
| 29 | xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> |
| 30 | </connectionStrings> |
| 31 | --> |
| 32 | <system.web> |
| 33 | <!-- |
| 34 | In the example below, the "Replace" transform will replace the entire |
| 35 | <customErrors> section of your Web.config file. |
| 36 | Note that because there is only one customErrors section under the |
| 37 | <system.web> node, there is no need to use the "xdt:Locator" attribute. |
| 38 | |
| 39 | <customErrors defaultRedirect="GenericError.htm" |
| 40 | mode="RemoteOnly" xdt:Transform="Replace"> |
| 41 | <error statusCode="500" redirect="InternalError.htm"/> |
| 42 | </customErrors> |
| 43 | --> |
| 44 | </system.web> |
| 45 | </configuration> |