Skip to content

Commit c396967

Browse files
authored
Merge pull request #392 from jlaanstra/user/jlaans/391
Only build the reference projection when there are references.
2 parents cbe9659 + bd01bc4 commit c396967

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ $(XamlMetaDataProviderPch)
432432

433433
<!--Build reference projection from WinMD project references and dynamic library project references-->
434434
<Target Name="CppWinRTMakeReferenceProjection"
435+
Condition="'@(CppWinRTDirectWinMDReferences)@(CppWinRTDynamicProjectWinMDReferences)' != '' AND '$(CppWinRTEnableReferenceProjection)' == 'true'"
435436
Condition="'$(CppWinRTEnableReferenceProjection)' == 'true'"
436437
DependsOnTargets="GetCppWinRTProjectWinMDReferences;GetCppWinRTPlatformWinMDReferences;GetCppWinRTDirectWinMDReferences;$(CppWinRTMakeReferenceProjectionDependsOn)"
437438
Inputs="@(CppWinRTDirectWinMDReferences);@(CppWinRTDynamicProjectWinMDReferences);@(CppWinRTPlatformWinMDReferences)"

0 commit comments

Comments
 (0)