Skip to content

Commit 509b24b

Browse files
committed
Provide internal attributes to WPF temporary assembly
1 parent 65deefd commit 509b24b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

TunnelVisionLabs.ReferenceAssemblyAnnotator/TunnelVisionLabs.ReferenceAssemblyAnnotator.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<ItemGroup Condition="'$(GenerateNullableAttributes)' == 'true' AND Exists($(NullableAttributesPath))">
1717
<Compile Include="$(NullableAttributesPath)" Visible="false" />
1818

19+
<!-- Workaround for https://github.com/dotnet/wpf/issues/810 -->
20+
<_GeneratedCodeFiles Include="$(NullableAttributesPath)" Visible="false" Condition="'$(UseWPF)' == 'true'" />
21+
1922
<!-- Make sure the source file is embedded in PDB to support Source Link -->
2023
<EmbeddedFiles Condition="'$(DebugType)' != 'none'" Include="$(NullableAttributesPath)" />
2124
</ItemGroup>

0 commit comments

Comments
 (0)