Skip to content

Commit 2e93084

Browse files
committed
Add a few comments and add the property to the static lib project template.
1 parent 896d31f commit 2e93084

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
117117
</ItemGroup>
118118
</Target>
119119

120+
<!-- Target used only to evaluate CppWinRTGenerateWindowsMetadata if it doesn't already have a value -->
120121
<Target Name="ComputeCppWinRTResolvedWinMD"
121122
Condition="'$(CppWinRTGenerateWindowsMetadata)' == ''"
122123
DependsOnTargets="GetCppWinRTMdMergeInputs">
@@ -419,6 +420,7 @@ $(XamlMetaDataProviderPch)
419420
</Target>
420421

421422
<!-- Only copy winmd to output folder if CppWinRTGenerateWindowsMetadata is true -->
423+
<!-- Note that Condition is evaluated before DependsOnTargets are run -->
422424
<Target Name="CppWinRTResolvedWinMDToOutputDirectory"
423425
Condition="'$(CppWinRTGenerateWindowsMetadata)' == 'true'"
424426
DependsOnTargets="CppWinRTMergeProjectWinMDInputs;$(CppWinRTResolvedWinMDToOutputDirectoryDependsOn)"

vsix/ProjectTemplates/VC/Windows Universal/StaticLibrary/StaticLibrary.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup Label="Globals">
44
<CppWinRTOptimized>true</CppWinRTOptimized>
55
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
6+
<CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata>
67
<CppWinRTParameters>-lib $(MSBuildProjectName)</CppWinRTParameters>
78
<MinimalCoreWin>true</MinimalCoreWin>
89
<ProjectGuid>{$guid1$}</ProjectGuid>

0 commit comments

Comments
 (0)