diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3008f87572..3316122742 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,11 +136,8 @@ jobs: - name: Restore run: dotnet restore - - name: Build - run: dotnet build -c Release --no-restore -p:VersionSuffix="${{ env.VERSION_SUFFIX }}" - - name: Pack - run: dotnet pack -c Release --no-build -p:VersionSuffix="${{ env.VERSION_SUFFIX }}" -o artifacts/packages + run: dotnet pack -c Release --no-restore -p:VersionSuffix="${{ env.VERSION_SUFFIX }}" -o artifacts/packages - name: Upload NuGet packages uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f602a4300..9ec6208846 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,11 +126,8 @@ jobs: - name: Restore run: dotnet restore - - name: Build - run: dotnet build -c Release --no-restore - - name: Pack - run: dotnet pack -c Release --no-build -o artifacts/packages + run: dotnet pack -c Release --no-restore -o artifacts/packages - name: Upload NuGet packages uses: actions/upload-artifact@v4 diff --git a/Svg.Skia.slnx b/Svg.Skia.slnx index bb0c633335..a111bfa914 100644 --- a/Svg.Skia.slnx +++ b/Svg.Skia.slnx @@ -78,6 +78,7 @@ + @@ -87,6 +88,7 @@ + diff --git a/build/SkiaSharp.Native.v3.props b/build/SkiaSharp.Native.v3.props index aa0caab38b..cdf486fa0f 100644 --- a/build/SkiaSharp.Native.v3.props +++ b/build/SkiaSharp.Native.v3.props @@ -1,9 +1,9 @@ - - - - + + + + diff --git a/build/SkiaSharp.v3.props b/build/SkiaSharp.v3.props index 78c953fb67..d9689afb39 100644 --- a/build/SkiaSharp.v3.props +++ b/build/SkiaSharp.v3.props @@ -1,6 +1,6 @@ - + diff --git a/global.json b/global.json index 5090070892..c8e2516db5 100644 --- a/global.json +++ b/global.json @@ -3,5 +3,8 @@ "version": "10.0.100", "rollForward": "latestMinor", "allowPrerelease": true + }, + "msbuild-sdks": { + "Uno.Sdk": "6.5.31" } } diff --git a/samples/UnoSvgSkiaSample/App.xaml b/samples/UnoSvgSkiaSample/App.xaml new file mode 100644 index 0000000000..90dd94642a --- /dev/null +++ b/samples/UnoSvgSkiaSample/App.xaml @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/samples/UnoSvgSkiaSample/App.xaml.cs b/samples/UnoSvgSkiaSample/App.xaml.cs new file mode 100644 index 0000000000..f9889be23c --- /dev/null +++ b/samples/UnoSvgSkiaSample/App.xaml.cs @@ -0,0 +1,38 @@ +using Uno.Resizetizer; + +namespace UnoSvgSkiaSample; + +public sealed partial class App : Application +{ + public App() + { + InitializeComponent(); + } + + private Window? MainWindow { get; set; } + + protected override void OnLaunched(LaunchActivatedEventArgs args) + { + MainWindow = new Window(); + + if (MainWindow.Content is not Frame rootFrame) + { + rootFrame = new Frame(); + MainWindow.Content = rootFrame; + rootFrame.NavigationFailed += OnNavigationFailed; + } + + if (rootFrame.Content is null) + { + rootFrame.Navigate(typeof(MainPage), args.Arguments); + } + + MainWindow.SetWindowIcon(); + MainWindow.Activate(); + } + + private static void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new InvalidOperationException($"Failed to load {e.SourcePageType.FullName}: {e.Exception}"); + } +} diff --git a/samples/UnoSvgSkiaSample/GlobalUsings.cs b/samples/UnoSvgSkiaSample/GlobalUsings.cs new file mode 100644 index 0000000000..fcc4e685ba --- /dev/null +++ b/samples/UnoSvgSkiaSample/GlobalUsings.cs @@ -0,0 +1,3 @@ +global using Microsoft.UI.Xaml; +global using Microsoft.UI.Xaml.Controls; +global using Microsoft.UI.Xaml.Input; diff --git a/samples/UnoSvgSkiaSample/MainPage.xaml b/samples/UnoSvgSkiaSample/MainPage.xaml new file mode 100644 index 0000000000..240008ee0f --- /dev/null +++ b/samples/UnoSvgSkiaSample/MainPage.xaml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +