File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -523,15 +523,19 @@ $(XamlMetaDataProviderPch)
523523 <Target Name =" CppWinRTMakeProjections" DependsOnTargets =" CppWinRTCalculateEnabledProjections;CppWinRTMakePlatformProjection;CppWinRTMakeReferenceProjection;CppWinRTMakeComponentProjection;$(CppWinRTMakeProjectionsDependsOn)" />
524524
525525 <!-- Add references to all merged project WinMD files for Xaml Compiler-->
526- <Target Name =" CppWinRTAddXamlReferences" DependsOnTargets =" $(CppWinRTAddXamlReferencesDependsOn)" >
526+ <Target Name =" CppWinRTAddXamlReferences"
527+ Condition =" '@(Page)@(ApplicationDefinition)' != '' and '$(XamlLanguage)' == 'CppWinRT'"
528+ DependsOnTargets =" $(CppWinRTAddXamlReferencesDependsOn)" >
527529 <ItemGroup >
528530 <XamlReferencesToCompile Include =" $(OutDir)*.winmd" />
529531 </ItemGroup >
530532 </Target >
531533
532534 <!-- Clear merged assembly and set local assembly for Xaml Compiler.
533535 (Note: this can be removed when CppWinRT references are removed from the Xaml targets file.)-->
534- <Target Name =" CppWinRTSetXamlLocalAssembly" DependsOnTargets =" $(CppWinRTSetXamlLocalAssemblyDependsOn)" >
536+ <Target Name =" CppWinRTSetXamlLocalAssembly"
537+ Condition =" '@(Page)@(ApplicationDefinition)' != '' and '$(XamlLanguage)' == 'CppWinRT'"
538+ DependsOnTargets =" $(CppWinRTSetXamlLocalAssemblyDependsOn)" >
535539 <PropertyGroup >
536540 <CppWinRTMetadataAssembly ></CppWinRTMetadataAssembly >
537541 <XamlLocalAssembly >$(CppWinRTProjectWinMD)</XamlLocalAssembly >
You can’t perform that action at this time.
0 commit comments