|
8 | 8 |
|
9 | 9 | <ItemGroup Condition="'$(EnableWebFormsDefaultItems)'=='true'"> |
10 | 10 | <Content Include="Web.config" /> |
11 | | - <_WebConfigConfigurations Include="$(Configurations)" /> |
12 | | - <None Include="@(_WebConfigConfigurations->'Web.%(Identity).config')"> |
13 | | - <DependentUpon>Web.config</DependentUpon> |
14 | | - </None> |
| 11 | + <!-- web.*.config where * is a Configuration type (used for transforms) fixes #67 --> |
| 12 | + <_WebConfigConfiguration Include="$(Configurations)" Exclude="@ExcludeWebConfigConfiguration"> |
| 13 | + <Configuration>%(Identity)</Configuration> |
| 14 | + </_WebConfigConfiguration> |
| 15 | + <_WebConfigConfigurationFile Include="@(_WebConfigConfiguration->'Web.%(Identity).config')" > |
| 16 | + <DependentUpon Condition="EXISTS('Web.config')">Web.config</DependentUpon> |
| 17 | + <CurrentConfiguration>false</CurrentConfiguration> |
| 18 | + <CurrentConfiguration Condition="'$(Configuration)'=='%(Configuration)'">true</CurrentConfiguration> |
| 19 | + <!-- The following could be extended to allow applying transforms based on the configuration in a hierarchical way. See notes in PR #68 --> |
| 20 | + <!--<ApplyConfiguration>false</ApplyConfiguration> |
| 21 | + <ApplyConfiguration Condition="'$(Configuration)'=='%(Configuration)'">true</ApplyConfiguration> |
| 22 | + <ApplyConfiguration Condition="$(Configuration.StartsWith('%(Configuration).'))">true</ApplyConfiguration>--> |
| 23 | + </_WebConfigConfigurationFile> |
| 24 | + <None Include="@(_WebConfigConfigurationFile->Exists())" /> |
15 | 25 | <None Include="Web.BindingRedirects.config" Condition="EXISTS('Web.BindingRedirects.config')"> |
16 | | - <DependentUpon>Web.config</DependentUpon> |
| 26 | + <DependentUpon Condition="EXISTS('Web.config')">Web.config</DependentUpon> |
17 | 27 | </None> |
18 | 28 |
|
19 | 29 | <!-- Altered web.*.config inclusion so these items will be in the WebDeploy Package |
|
0 commit comments