Skip to content

Commit e94fdb1

Browse files
Add AssemblyMetadata[Language] attribute (#596)
* Add [assembly:AssemblyMetadata(Language, C++)] attribute to aid CrossGen
1 parent caf82fd commit e94fdb1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

eng/WpfArcadeSdk/tools/ExtendedAssemblyInfo.targets

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@
4040
<AssemblyMetadata Include="Commit" Condition="'$(SourceRevisionId)'!=''">
4141
<Value>$(SourceRevisionId)</Value>
4242
</AssemblyMetadata>
43+
44+
<!--
45+
Crossgen wants to detect when an assembly is built from C++/CLI sources,
46+
since it is unable to function correctly today (ostensibly due to bugs). Since
47+
/clr:pure is deprecated and WPF will eventually switch over to /clr (i.e., IJW),
48+
Crossgen will eventually (i.e., in the near-term) fail to work on C++/CLI
49+
assemblies anyway.
50+
51+
Crossgen will detect [assembly: AssemblyMetadta("Language", "C++")] and
52+
skip those assemblies. WPF will add this attribute to assemblies that are
53+
compiled from C++/CLI sources.
54+
55+
WPF will also add [assembly: AssemblyMetadata("Language, "C#")] to C#
56+
assemblies.
57+
58+
https://github.com/dotnet/wpf/issues/587
59+
-->
60+
<AssemblyMetadata Include="Language" Condition="'$(Language)'!=''">
61+
<Value>$(Language)</Value>
62+
</AssemblyMetadata>
4363
</ItemGroup>
4464
</Target>
4565

0 commit comments

Comments
 (0)