Skip to content

Commit ca65145

Browse files
committed
feat: Update Navigation Sample to Uno 6 and net 9
1 parent 8261367 commit ca65145

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

UI/Navigation/src/Navigation/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
3232
MainWindow = builder.Window;
3333

3434
#if DEBUG
35-
MainWindow.EnableHotReload();
35+
MainWindow.UseStudio();
3636
#endif
3737
MainWindow.SetWindowIcon();
3838

UI/Navigation/src/Navigation/Navigation.csproj

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<Project Sdk="Uno.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>
4-
net8.0-android;
5-
net8.0-ios;
6-
net8.0-maccatalyst;
7-
net8.0-windows10.0.19041;
8-
net8.0-desktop;
9-
net8.0-browserwasm;
10-
</TargetFrameworks>
3+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-windows10.0.26100;net9.0-browserwasm;net9.0-desktop</TargetFrameworks>
114

125
<OutputType>Exe</OutputType>
136
<UnoSingleProject>true</UnoSingleProject>
@@ -29,11 +22,7 @@
2922
the "Microsoft.Windows.SDK.BuildTools" package above, and the "revision" version number
3023
must be the highest found in https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref.
3124
-->
32-
33-
<!-- Uno Platform 5.4 has been updated to use WinAppSDK 1.6, which necessitates a temporary version adjustment until newer versions of .NET 8 SDKs are released. -->
34-
<!-- Comment this WindowsSdkPackageVersion line again once .NET SDK version 8.0.403 or later is available. -->
35-
<!-- For more details, refer to: https://aka.platform.uno/migrate-from-previous#uno-platform-54 -->
36-
<WindowsSdkPackageVersion>10.0.19041.38</WindowsSdkPackageVersion>
25+
<!-- <WindowsSdkPackageVersion>10.0.22621.28</WindowsSdkPackageVersion> -->
3726

3827
<!--
3928
UnoFeatures let's you quickly add and manage implicit package references based on the features you want to use.

UI/Navigation/src/Navigation/Platforms/Desktop/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using Uno.UI.Runtime.Skia;
1+
using Uno.UI.Hosting;
22

33
namespace Navigation;
44
public class Program
55
{
66
[STAThread]
77
public static void Main(string[] args)
88
{
9-
var host = SkiaHostBuilder.Create()
9+
var host = UnoPlatformHostBuilder.Create()
1010
.App(() => new App())
1111
.UseX11()
1212
.UseLinuxFrameBuffer()

UI/Navigation/src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// To update the version of Uno please update the version of the Uno.Sdk here. See https://aka.platform.uno/upgrade-uno-packages for more information.
33
"msbuild-sdks": {
4-
"Uno.Sdk": "5.5.56"
4+
"Uno.Sdk": "6.0.67"
55
},
66
"sdk": {
77
"allowPrerelease": false

0 commit comments

Comments
 (0)