Skip to content

Commit

Permalink
Only include web.xxxx.config for configurations, where xxxx exists on…
Browse files Browse the repository at this point in the history
… disk. Fixes #67
  • Loading branch information
CZEMacLeod committed Jul 30, 2023
1 parent d176021 commit 05436e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "2.0.1",
"MSBuild.SDK.SystemWeb": "4.0.82",
"MSBuild.SDK.SystemWeb.RazorLibrary": "4.0.82"
"MSBuild.SDK.SystemWeb": "4.0.88",
"MSBuild.SDK.SystemWeb.RazorLibrary": "4.0.88"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

<ItemGroup Condition="'$(EnableWebFormsDefaultItems)'=='true'">
<Content Include="Web.config" />
<_WebConfigConfigurations Include="$(Configurations)" />
<None Include="@(_WebConfigConfigurations->'Web.%(Identity).config')">
<!-- web.*.config where * is a Configuration type (used for transforms) fixes #67 -->
<_WebConfigConfiguration Include="$(Configurations)" Exclude="@ExcludeWebConfigConfiguration" />
<_WebConfigConfigurationFiles Include="@(_WebConfigConfiguration->'Web.%(Identity).config')">
<DependentUpon>Web.config</DependentUpon>
</None>
</_WebConfigConfigurationFiles>
<None Include="@(_WebConfigConfigurationFiles->Exists())" />
<None Include="Web.BindingRedirects.config" Condition="EXISTS('Web.BindingRedirects.config')">
<DependentUpon>Web.config</DependentUpon>
</None>
Expand Down

0 comments on commit 05436e1

Please sign in to comment.