Skip to content

Commit

Permalink
Ensure we don't override XamlLanguage if it's already set. (#979)
Browse files Browse the repository at this point in the history
When NuGet imports the props as part of PackageReference, it easy to end up in situations where the project file defines XamlLanguage before the C++/WinRT props are imported.

We shouldn't override if the value is already set.
  • Loading branch information
jlaanstra authored Jul 9, 2021
1 parent 54c1097 commit 74240c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuget/Microsoft.Windows.CppWinRT.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<CanReferenceWinRT>true</CanReferenceWinRT>
<CppWinRTPackage Condition="'$(CppWinRTEnabled)' != 'true'">true</CppWinRTPackage>
<CppWinRTPackage Condition="'$(CppWinRTPackage)' != 'true'">false</CppWinRTPackage>
<XamlLanguage>CppWinRT</XamlLanguage>
<XamlLanguage Condition="'$(XamlLanguage)' == ''">CppWinRT</XamlLanguage>
<IsNativeLanguage>true</IsNativeLanguage>
<!-- This causes VS to add the platform WinMD references for the target SDK -->
<WinMDAssembly>true</WinMDAssembly>
Expand Down

0 comments on commit 74240c8

Please sign in to comment.