Skip to content

Commit c721363

Browse files
manodasanWScottj1s
authored andcommitted
Fixing CppWinRT_IncludePath and the include paths that build on it to point to the generated headers (#409)
* Fixing CppWinRT_IncludePath and the include paths that build on it to refer to the generated header files rather than the one in the installed Windows SDK. * Removing redundant condition. * Resolving issue using alternate approach of setting an include path in props to prevent SDK uap.props from overriding it. * Remove spacing.
1 parent 34ee731 commit c721363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nuget/Microsoft.Windows.CppWinRT.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Copyright (C) Microsoft Corporation. All rights reserved.
1515
<IsNativeLanguage>true</IsNativeLanguage>
1616
<!-- This causes VS to add the platform WinMD references for the target SDK -->
1717
<WinMDAssembly>true</WinMDAssembly>
18+
<!--Set a value to prevent SDK's uap.props from setting it and pointing to the wrong headers-->
19+
<CppWinRT_IncludePath>PreventSdkUapPropsAssignment</CppWinRT_IncludePath>
1820
</PropertyGroup>
1921

2022
<ItemDefinitionGroup>

0 commit comments

Comments
 (0)