Uno.WinUI - #1960
Conversation
|
At the moment I'm experiencing a strange issue with SkiaSharp.Views.Uno.WinUI.Mobile project. Compiling it to targets other than net6.0-android fails due to ignored conditional compilation symbols |
|
To speed up the CI bulds and skip the unmanaged builds, change the number from That number is just a last green build here. It expires after a while and it may not work if you change unmanaged files, but it is the best I have now. I need to write some yaml to allow you to somehow (maybe with a github tag) to skip the unmnaged builds. But for now, numbers!!! |
|
The rename from native to platform is in maui preview 14. Is that the version you are wanting to target? only preview 13 is out right now. We can totally release a new p13 build of skia with uno.ui and then update to p14 once that is closer to release |
|
CI iscurrently failing because of a missing package in our dotnet-puyblic feed. Asked them to add that now. |
I wanted to target Uno WinUI 3, so we can exclude the MAUI changes. I renamed them just so I won't get an error in latest VS2022 preview. |
|
Seems the skip does not work for forks 😢 I thinkn this is the next thing I need to get working on CI. But for the time being, back to square 0 it seems. |
revert buildExternals number back to 0
|
@mattleibow is there anything else I can do to help merge this? |
There was a problem hiding this comment.
This PR adds net6 targets for samples and gallery, which cannot work unless the referenced SkiaSharp.Views.Uno.WinUI libraries also reference net6.0-android, ios, etc..
There's also a need for Uno to be updated to the latest preview 14 bits (because of iOS/mac breaking changes), which will be happening in the next few days.
| using Windows.UI; | ||
|
|
||
| #if WINDOWS | ||
| #if WINDOWS || WINUI |
There was a problem hiding this comment.
It's likely that changing all references to WINUI would make more sense, which means adding WINUI as a constant in the existing WinUI project.
|
The Uno Platform release 4.1.9 now supports net6.0-ios, net6.0-android, net6.0-maccatalyst and net6.0-macos. It can be used to add the new targets compatible with the mobile template used in this PR. |
|
It seems to me that |
|
Yes, the |
|
Here are the uno packages for this PR:
|
|
Should be available now. I asked for the latest, so maybe we need some older versions too. When you remove the nuget.config we will know. |
|
I haven’t committed nuget.config, so it should be good to goOn Wed, Apr 6, 2022 at 6:16 PM, Matthew Leibowitz ***@***.***> wrote:
Should be available now. I asked for the latest, so maybe we need some older versions too. When you remove the nuget.config we will know.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
There are the nuget.configs in the samples folders. We can't have any nuget.configs anywhere in the repo that have nuget.org or any other non-azure feeds. |
|
Ok my bad maybe I did add them. I’m on mobile, so will fix it later. On Wed, Apr 6, 2022 at 6:46 PM, Matthew Leibowitz ***@***.***> wrote:
There are the nuget.configs in the samples folders. We can't have any nuget.configs anywhere in the repo that have nuget.org or any other non-azure feeds.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
There is 1 more: samples/Basic/Uno/NuGet.config |
|
I notice this in the logs: Did the net6 uno loose the strong name? |
|
Uno never had strong names (and likely never will). Could it be that the skia build requires strong names in net6? |
mattleibow
left a comment
There was a problem hiding this comment.
Just some comments, all looking really close.
| <AssemblyName>SkiaSharp.Views.Windows</AssemblyName> | ||
| <PackagingGroup>SkiaSharp.Views.WinUI</PackagingGroup> | ||
| <DefineConstants>$(DefineConstants);WINDOWS</DefineConstants> | ||
| <PublishTrimmed>false</PublishTrimmed> |
There was a problem hiding this comment.
Also, isn't WINDOWS already defined? Did you mean WINUI instead? How does this (if at all) relate to the || WINUI added in the cs?
There was a problem hiding this comment.
The PublishTrimmed is scattered thought... is that needed as I think it is an app feature.
| <RootNamespace>SkiaSharp.Views.UWP</RootNamespace> | ||
| <AssemblyName>SkiaSharp.Views.UWP</AssemblyName> | ||
| <PackagingGroup>SkiaSharp.Views.Uno.WinUI</PackagingGroup> | ||
| <PackageId>SkiaSharp.Views.Uno.WinUI</PackageId> |
There was a problem hiding this comment.
This may need a <SignAssembly>false to disable strong naming for Uno things. I see it is in the skia/wasm projects...
| @@ -0,0 +1,5 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="SkiaSharp" android:versionCode="1" android:versionName="1.0"> | |||
There was a problem hiding this comment.
This file should not be in a library.
There was a problem hiding this comment.
msbuild was failing without these two files unfortunately, not sure if it is still doing this
There was a problem hiding this comment.
@anpin I can take over this PR and finish it, if that's fine with you. I'll have to re-create it and I'll keep the history.
There was a problem hiding this comment.
@jeromelaban I don't mind that as my attention shifted on something else and I no longer need this actually
| "SkiaSharp.Views.Uno\\SkiaSharp.Views.Uno.Reference\\SkiaSharp.Views.Uno.Reference.csproj", | ||
| "SkiaSharp.Views.Uno\\SkiaSharp.Views.Uno.Skia\\SkiaSharp.Views.Uno.Skia.csproj", | ||
| "SkiaSharp.Views.Uno\\SkiaSharp.Views.Uno.Wasm\\SkiaSharp.Views.Uno.Wasm.csproj", | ||
| "SkiaSharp.Views.Uno\\SkiaSharp.Views.Uno.WinUI.Mobile\\SkiaSharp.Views.Uno.WinUI.Mobile.csproj", |
There was a problem hiding this comment.
Need to confirm if SkiaSharp.Views.Uno.WinUI.Mobile.csproj builds with netfx... I was having issues - but I think that was months ago so maybe it all works now :)
|
The Windows builds are failing with: |
Description of Change
Added views for Uno.WinUI #1787
Bugs Fixed
Fixed breaking changes in MAUI handlers (they renamed Native views to Platform views)
API Changes
None
Behavioral Changes
None
PR Checklist