Skip to content

Commit 77bb72c

Browse files
committed
Split the Web.BindingRedirects.config file include into a conditional line
If there is no file on disk (e.g. it has never been required/generated, or it is excluded from git and you checkout a project), do not expect it to exist, and do not 'force' its inclusion.
1 parent 21e499d commit 77bb72c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultItems.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<ItemGroup Condition="'$(EnableWebFormsDefaultItems)'=='true'">
1010
<Content Include="Web.config" />
1111
<_WebConfigConfigurations Include="$(Configurations)" />
12-
<None Include="@(_WebConfigConfigurations->'Web.%(Identity).config');Web.BindingRedirects.config">
12+
<None Include="@(_WebConfigConfigurations->'Web.%(Identity).config')">
13+
<DependentUpon>Web.config</DependentUpon>
14+
</None>
15+
<None Include="Web.BindingRedirects.config" Condition="EXISTS('Web.BindingRedirects.config')">
1316
<DependentUpon>Web.config</DependentUpon>
1417
</None>
1518
<Content Include="Web.*.config" Exclude="@(None)">

0 commit comments

Comments
 (0)