Skip to content

Commit 9c943a2

Browse files
committed
Workaround to provide internal attributes to WPF temp projects
1 parent 5482265 commit 9c943a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IDisposableAnalyzers/build/IDisposableAnalyzers.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<ItemGroup Condition="'$(IncludeOwnershipAttributes)' == 'true'">
1010
<Compile Include="$(OwnershipAttributesPath)" Visible="false" />
11+
12+
<!-- Workaround for https://github.com/dotnet/wpf/issues/810 -->
13+
<_GeneratedCodeFiles Include="$(OwnershipAttributesPath)" Visible="false" Condition="'$(UseWPF)' == 'true'" />
1114
</ItemGroup>
1215

1316
</Project>

0 commit comments

Comments
 (0)