Skip to content

Commit bd6ec8a

Browse files
committed
Package updates and fixes for modern dotnet on uwp
1 parent 2936f5f commit bd6ec8a

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

MultiTarget/AvailableTargetFrameworks.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<UwpTargetFramework>uap10.0.17763;net8.0-windows10.0.22621.0;</UwpTargetFramework>
3+
<UwpTargetFramework>uap10.0.17763;net8.0-windows10.0.26100.0;</UwpTargetFramework>
44
<WinAppSdkTargetFramework>net8.0-windows10.0.22621.0;net7.0-windows10.0.22621.0;net6.0-windows10.0.22621.0;</WinAppSdkTargetFramework>
55

66
<WasmHeadTargetFramework>net8.0</WasmHeadTargetFramework>

MultiTarget/EnabledTargetFrameworks.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<UwpTargetFramework>uap10.0.17763;net8.0-windows10.0.22621.0;</UwpTargetFramework>
3+
<UwpTargetFramework>uap10.0.17763;net8.0-windows10.0.26100.0;</UwpTargetFramework>
44
<WinAppSdkTargetFramework>net8.0-windows10.0.22621.0;net7.0-windows10.0.22621.0;net6.0-windows10.0.22621.0;</WinAppSdkTargetFramework>
55

66
<WasmHeadTargetFramework>net8.0</WasmHeadTargetFramework>

MultiTarget/MultiTargetIdentifiers.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<WinUIMajorVersion Condition="'$(HasWinUI)' == 'true' AND '$(IsUwp)' == 'true'">2</WinUIMajorVersion>
6161
<WinUIMajorVersion Condition="'$(HasWinUI)' == 'true' AND '$(IsWinAppSdk)' == 'true'">3</WinUIMajorVersion>
6262

63-
<UseUwp Condition="'$(HasWinUI)' == 'true' AND '$(IsUwp)' == 'true'">true</UseUwp>
64-
<UseUwpTools Condition="'$(HasWinUI)' == 'true' AND '$(IsUwp)' == 'true'">true</UseUwpTools>
63+
<UseUwp Condition="'$(HasWinUI)' == 'true' AND '$(IsUwp)' == 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">true</UseUwp>
64+
<UseUwpTools Condition="'$(HasWinUI)' == 'true' AND '$(IsUwp)' == 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">true</UseUwpTools>
6565
</PropertyGroup>
6666
</Project>

MultiTarget/NoWarn.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@
33
<PropertyGroup Condition="'$(IsUwp)' == 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
44
<NoWarn>$(NoWarn);CA1416;</NoWarn>
55
</PropertyGroup>
6+
7+
<!--
8+
WinUI 2 preview suppression
9+
'Microsoft.UI.Xaml.*' is for evaluation purposes only and is subject to change or removal in future updates.
10+
-->
11+
<PropertyGroup Condition="'$(IsUwp)' == 'true'">
12+
<NoWarn>$(NoWarn);CS8305;</NoWarn>
13+
</PropertyGroup>
614
</Project>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project>
22
<ItemGroup>
3-
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.UI.Xaml" Version="2.8.7-prerelease.240725004" />
4-
<PackageReference Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" Include="Microsoft.Windows.CsWinRT" Version="2.1.0-prerelease-ci.240731.2" PrivateAssets="all" />
3+
<PackageReference Condition="'$(HasWinUI)' == 'true'" Include="Microsoft.UI.Xaml" Version="2.8.7-ci.240911006" />
4+
<PackageReference Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" Include="Microsoft.Windows.CsWinRT" Version="2.1.3" PrivateAssets="all" />
5+
<PackageReference Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" Include="Microsoft.Web.WebView2" Version="1.0.2783-prerelease" IncludeAssets="none" />
56
</ItemGroup>
67
</Project>

MultiTarget/WinUI.Extra.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
-->
1818
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
1919
<SupportedOSPlatformVersion>$(TargetPlatformMinVersion)</SupportedOSPlatformVersion>
20-
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
21-
<WindowsSdkPackageVersion>10.0.22621.37-preview</WindowsSdkPackageVersion>
20+
<TargetPlatformVersion>10.0.26100.0</TargetPlatformVersion>
2221
</PropertyGroup>
2322

2423
<!-- Workaround, improved error message when consuming from Uno projects with mismatched TFMs -->
@@ -30,6 +29,9 @@
3029

3130
<PropertyGroup Condition="'$(IsUwp)' == 'true'">
3231
<Platforms>x86;x64;arm64</Platforms>
32+
33+
<WindowsSdkPackageVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.26100.39</WindowsSdkPackageVersion>
34+
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win-x86;win-x64;win-arm64</RuntimeIdentifiers>
3335
</PropertyGroup>
3436

3537
<PropertyGroup Condition="'$(IsWinAppSdk)' == 'true'">

ProjectHeads/App.Head.Uwp.Dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Project>
44
<ItemGroup>
55
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls.Markdown" Version="7.1.2" />
6-
<PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed" Version="3.0.0-local2430.1330" />
6+
<PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed" Version="3.0.0-local.240918" />
77
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
88
</ItemGroup>
99
</Project>

0 commit comments

Comments
 (0)