Skip to content

Commit 52d6c40

Browse files
authored
Preserve transitively copied content in VS
See dotnet/msbuild#1054 (comment)
1 parent fc5889d commit 52d6c40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
<NoWarn>NU5105;$(NoWarn)</NoWarn>
8080
<!-- Turn warnings into errors in CI or Release builds -->
8181
<WarningsAsErrors Condition="$(CI) or '$(Configuration)' == 'Release'">true</WarningsAsErrors>
82+
83+
<!-- Preserve transitively copied content in VS: https://github.com/dotnet/msbuild/issues/1054#issuecomment-847959047 -->
84+
<MSBuildCopyContentTransitively>true</MSBuildCopyContentTransitively>
8285
</PropertyGroup>
8386

8487
<PropertyGroup Label="StrongName" Condition="Exists('$(MSBuildThisFileDirectory)kzu.snk')">

0 commit comments

Comments
 (0)