Skip to content

Commit c978627

Browse files
authored
Ensure the Xaml designer can find out WinMD (#982)
1 parent 74240c8 commit c978627

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ Copyright (C) Microsoft Corporation. All rights reserved.
216216
<CallTarget Targets="CppWinRTComputeGenerateWindowsMetadata" />
217217
</Target>
218218

219-
<!-- This target overrides the GetResolvedWinMD target used to resolve the WinMD for native projects
219+
<!-- This target hooks into the GetResolvedWinMD target used to resolve the WinMD for native projects
220220
so it is aware of the C++/WinRT generated WinMD.
221-
Since not every project that consumes C++/WinRT uses it to generate a WinMD,
222-
we need to keep the CX logic as well. -->
221+
There is no good way to hook GetResolvedWinMD so we use BeforeTargets. -->
223222
<Target Name="CppWinRTGetResolvedWinMD"
224223
DependsOnTargets="CppWinRTComputeGetResolvedWinMD"
224+
BeforeTargets="GetResolvedWinMD"
225225
Returns="@(WinMDFullPath)">
226226

227227
<!-- Add C++/WinRT primary WinMD to the WinMDFullPath if CppWinRTGenerateWindowsMetadata is true -->

0 commit comments

Comments
 (0)