Skip to content

Commit 8f9781d

Browse files
authored
Update to Maui Preview 11 (#1890)
1 parent 3c721d2 commit 8f9781d

File tree

13 files changed

+25
-21
lines changed

13 files changed

+25
-21
lines changed

Diff for: VERSIONS.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ System.IO.UnmanagedMemoryStream release 4.3.0
2222
System.Drawing.Common release 4.5.1
2323
SharpVk release 0.4.2
2424
Uno.UI release 3.7.6
25-
Microsoft.WindowsAppSDK release 1.0.0-preview3
25+
Microsoft.WindowsAppSDK release 1.0.0
2626
Microsoft.Maui.Graphics release 6.0.101-preview.9.512
2727
Microsoft.Windows.SDK.NET.Ref release 10.0.18362.18
2828
Microsoft.AspNetCore.Components.Web release 6.0.0

Diff for: samples/Basic/Maui/SkiaSharpSample/SkiaSharpSample.csproj

+8-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29+
<!--<Reference Include="..\..\..\..\binding\SkiaSharp\bin\Debug\netstandard2.0\SkiaSharp.dll" />
30+
<Reference Include="..\..\..\..\source\SkiaSharp.Views.Maui\SkiaSharp.Views.Maui.Controls.Compatibility\bin\Debug\net6.0-windows10.0.19041\SkiaSharp.Views.Maui.Controls.Compatibility.dll" />
31+
<Reference Include="..\..\..\..\source\SkiaSharp.Views.Maui\SkiaSharp.Views.Maui.Controls\bin\Debug\net6.0-windows10.0.19041\SkiaSharp.Views.Maui.Controls.dll" />
32+
<Reference Include="..\..\..\..\source\SkiaSharp.Views.Maui\SkiaSharp.Views.Maui.Core\bin\Debug\net6.0-windows10.0.19041\SkiaSharp.Views.Maui.Core.dll" />
33+
<Reference Include="..\..\..\..\source\SkiaSharp.Views.WinUI\SkiaSharp.Views.WinUI\bin\Debug\net5.0-windows10.0.18362\SkiaSharp.Views.Windows.dll" />-->
2934
<ProjectReference Include="..\..\..\..\binding\SkiaSharp\SkiaSharp.csproj" />
3035
<ProjectReference Include="..\..\..\..\source\SkiaSharp.Views.Maui\SkiaSharp.Views.Maui.Controls.Compatibility\SkiaSharp.Views.Maui.Controls.Compatibility.csproj" />
3136
<ProjectReference Include="..\..\..\..\source\SkiaSharp.Views.Maui\SkiaSharp.Views.Maui.Controls\SkiaSharp.Views.Maui.Controls.csproj" />
3237
</ItemGroup>
3338

3439
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
35-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
36-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.29-preview3" />
40+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
41+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
3742
</ItemGroup>
3843

3944
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
@@ -45,7 +50,7 @@
4550

4651
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
4752
<OutputType>WinExe</OutputType>
48-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
53+
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
4954
</PropertyGroup>
5055

5156
<Import Project="..\..\..\..\output\SkiaSharp\nuget\build\$(TargetFramework)\SkiaSharp.Local.targets" Condition="Exists('..\..\..\..\output\SkiaSharp\nuget\build\$(TargetFramework)\SkiaSharp.Local.targets')" />

Diff for: samples/Basic/WinUI/Msix/SkiaSharpSample/SkiaSharpSample.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.19041.18" TargetingPackVersion="10.0.19041.18" />
16-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
16+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
1717
<Manifest Include="$(ApplicationManifest)" />
1818
</ItemGroup>
1919

Diff for: samples/Basic/WinUI/WapProj/SkiaSharpSample.Package/SkiaSharpSample.Package.wapproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</ProjectReference>
6565
</ItemGroup>
6666
<ItemGroup>
67-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="[1.0.0-preview3]">
67+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="[1.0.0]">
6868
<IncludeAssets>build</IncludeAssets>
6969
</PackageReference>
7070
</ItemGroup>

Diff for: samples/Basic/WinUI/WapProj/SkiaSharpSample/SkiaSharpSample.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.19041.18" TargetingPackVersion="10.0.19041.18" />
16-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
16+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
1717
<Manifest Include="$(ApplicationManifest)" />
1818
</ItemGroup>
1919

Diff for: samples/Directory.Build.targets

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
<Project>
22

3-
<!-- HACK: Do not copy the native bootstrap files -->
4-
<Target Name="_RemoveWasdkBootstrapDll" BeforeTargets="ResolveReferences">
5-
<ItemGroup>
6-
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(Filename)%(Extension)' == 'Microsoft.WindowsAppRuntime.Bootstrap.dll'" />
7-
</ItemGroup>
8-
</Target>
9-
103
</Project>

Diff for: scripts/azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variables:
3232
DOTNET_VERSION_PREVIOUS: 3.1.413
3333
DOTNET_VERSION: 5.0.401
3434
DOTNET_VERSION_PREVIEW: 6.0.100
35-
DOTNET_WORKLOAD_SOURCE: 'https://aka.ms/dotnet/maui/6.0.101/preview.10.json'
35+
DOTNET_WORKLOAD_SOURCE: 'https://aka.ms/dotnet/maui/6.0.101/preview.11.json'
3636
VS_VERSION_PREVIEW: 17/release
3737
CONFIGURATION: 'Release'
3838
VM_IMAGE_WINDOWS: windows-2022

Diff for: source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Native.Shared/SKCanvasViewRendererBase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
using Microsoft.Maui.Controls;
88
using Microsoft.Maui.Controls.Platform;
9+
using Microsoft.Maui.Platform;
910
using SkiaSharp.Views.Maui.Platform;
1011

1112
using SKFormsView = SkiaSharp.Views.Maui.Controls.SKCanvasView;

Diff for: source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/Handlers/SKCanvasView/SKCanvasViewHandler.Android.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.Maui;
22
using Microsoft.Maui.Handlers;
3+
using Microsoft.Maui.Platform;
34
using SkiaSharp.Views.Android;
45
using SkiaSharp.Views.Maui.Platform;
56

Diff for: source/SkiaSharp.Views.WinUI/SkiaSharp.Views.WinUI/SkiaSharp.Views.WinUI.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackagingGroup>SkiaSharp.Views.WinUI</PackagingGroup>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
10+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
1111
</ItemGroup>
1212
<ItemGroup>
1313
<ProjectReference Include="..\..\..\binding\SkiaSharp\SkiaSharp.csproj" />

Diff for: source/SkiaSharp.Views/SkiaSharp.Views.Apple/SKCGSurfaceFactory.cs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Runtime.InteropServices;
33
using CoreGraphics;
44
using Foundation;
5+
using ObjCRuntime;
56

67
#if __TVOS__
78
namespace SkiaSharp.Views.tvOS

Diff for: source/SkiaSharp.Views/SkiaSharp.Views.AppleiOS/iOSExtensions.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using UIKit;
3+
using ObjCRuntime;
34

45
#if __TVOS__
56
namespace SkiaSharp.Views.tvOS
@@ -15,14 +16,14 @@ public static class iOSExtensions
1516

1617
public static SKColor ToSKColor(this UIColor color)
1718
{
18-
System.nfloat r, g, b, a;
19+
nfloat r, g, b, a;
1920
color.GetRGBA(out r, out g, out b, out a);
2021
return new SKColor((byte)(r * 255), (byte)(g * 255), (byte)(b * 255), (byte)(a * 255));
2122
}
2223

2324
public static SKColorF ToSKColorF(this UIColor color)
2425
{
25-
System.nfloat r, g, b, a;
26+
nfloat r, g, b, a;
2627
color.GetRGBA(out r, out g, out b, out a);
2728
return new SKColorF((float)r, (float)g, (float)b, (float)a);
2829
}

Diff for: source/SkiaSharp.Views/SkiaSharp.Views.Mac/MacExtensions.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
using AppKit;
1+
using System;
2+
using AppKit;
23
using CoreGraphics;
4+
using ObjCRuntime;
35

46
namespace SkiaSharp.Views.Mac
57
{
@@ -9,14 +11,14 @@ public static class MacExtensions
911

1012
public static SKColor ToSKColor(this NSColor color)
1113
{
12-
System.nfloat r, g, b, a;
14+
nfloat r, g, b, a;
1315
color.GetRgba(out r, out g, out b, out a);
1416
return new SKColor((byte)(r * 255), (byte)(g * 255), (byte)(b * 255), (byte)(a * 255));
1517
}
1618

1719
public static SKColorF ToSKColorF(this NSColor color)
1820
{
19-
System.nfloat r, g, b, a;
21+
nfloat r, g, b, a;
2022
color.GetRgba(out r, out g, out b, out a);
2123
return new SKColorF((float)r, (float)g, (float)b, (float)a);
2224
}

0 commit comments

Comments
 (0)