Skip to content

Commit 990faf2

Browse files
authored
Update Microsoft.Windows.CppWinRT.targets
1 parent 6b39cda commit 990faf2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,15 @@ $(XamlMetaDataProviderPch)
520520
<Exec Command="$(CppWinRTCommand)" Condition="'@(_CppwinrtCompInputs)' != ''"/>
521521
</Target>
522522

523-
<!-- Main target that generates all the CppWinRT projections. -->
524-
<Target Name="CppWinRTMakeProjections" DependsOnTargets="CppWinRTMakePlatformProjection;CppWinRTMakeReferenceProjection;CppWinRTMakeComponentProjection;$(CppWinRTMakeProjectionsDependsOn)" />
523+
<Target Name="CppWinRTMakeProjections" DependsOnTargets="CppWinRTCalculateEnabledProjections;CppWinRTMakePlatformProjection;CppWinRTMakeReferenceProjection;CppWinRTMakeComponentProjection;$(CppWinRTMakeProjectionsDependsOn)" />
525524

525+
<!--Add references to all merged project WinMD files for Xaml Compiler-->
526+
<Target Name="CppWinRTAddXamlReferences" DependsOnTargets="$(CppWinRTAddXamlReferencesDependsOn)">
527+
<ItemGroup>
528+
<XamlReferencesToCompile Include="$(OutDir)*.winmd" />
529+
</ItemGroup>
530+
</Target>
531+
526532
<!--Clear merged assembly and set local assembly for Xaml Compiler.
527533
(Note: this can be removed when CppWinRT references are removed from the Xaml targets file.)-->
528534
<Target Name="CppWinRTSetXamlLocalAssembly" DependsOnTargets="$(CppWinRTSetXamlLocalAssemblyDependsOn)">

0 commit comments

Comments
 (0)