Skip to content

Commit faf1d96

Browse files
committed
Update WinAppSdk.props to conditionally reference packages based on HasWinUI
1 parent 9375f96 commit faf1d96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project>
22
<ItemGroup>
3-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240829007" />
4-
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
5-
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2792.45" PrivateAssets="all" />
3+
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.WindowsAppSDK" Version="1.6.240829007" />
4+
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
5+
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.Web.WebView2" Version="1.0.2792.45" PrivateAssets="all" />
66
</ItemGroup>
77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" />
8+
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.Windows.CsWinRT" Version="2.1.1" />
99
</ItemGroup>
1010
</Project>

0 commit comments

Comments
 (0)