Caliburn-Micro / Caliburn.Micro

A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
http://caliburnmicro.com/
MIT License
2.8k stars 778 forks source link

.net Maui support #783

Open vb2ae opened 2 years ago

vb2ae commented 2 years ago

Add .net Maui support

gerfen commented 2 years ago

@vb2ae and @KasperSK Is your intention to add a package like Caliburn.Micro.Xamarin.Forms to support MAUI? If so has there been any progress?

KasperSK commented 2 years ago

Hi @gerfen yes the intention is to make a Caliburn.Micro.Maui Package. As for the progress I have a version that works on Android and is currently implementing the windows version, iOS and macOS will follow that I have some code cleanup to do then I will make a PR and hopefully we can get a prerelease package out.

felipemomm commented 1 year ago

@vb2ae and @KasperSK Hi, any news about the support for MAUI? We are using Caliburn in two Xamarin.Forms apps, but we want to migrate them to MAUI.

From what I understood, Caliburn works for MAUI.Android, but the other platforms are still pending. One of our apps is Android only, so that's fine, but the other one also needs iOS.

Is there any timeline to support MAUI?

vb2ae commented 1 year ago

@felipemomm There is beta version out there that works with ios and windows also have not tested tizen. https://www.nuget.org/packages/vb2ae.Caliburn.Micro.Maui/5.0.7-beta.gd8666d156c

felipemomm commented 1 year ago

Great, thanks for the update!

KasperSK commented 1 year ago

@felipemomm as @vb2ae said there is the beta out all ready and I think that once we finish up with Avalonia and WinUI3 we will release version 5. So if you have any feedback to the MAUI implementation we would love to hear them :)

olliaustor commented 1 year ago

We're trying to add caliburn.micro to our maui migration project. Unfortunately this already fails when adding the library by "dotnet add package vb2ae.Caliburn.Micro.Maui --version 5.0.7-beta.gd8666d156c".

Output in visual studio: info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/local/share/dotnet/sdk/7.0.304/trustedroots/codesignctl.pem'. info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/local/share/dotnet/sdk/7.0.304/trustedroots/timestampctl.pem'. info : Adding PackageReference for package 'vb2ae.Caliburn.Micro.Maui' into project '[OUR PROJECT HERE]'. info : Restoring packages for [OUR PROJECT HERE] info : CACHE https://api.nuget.org/v3-flatcontainer/caliburn.micro.core/index.json info : GET https://f.feedz.io/videolan/preview/nuget/v3/packages/caliburn.micro.core/index.json info : NotFound https://f.feedz.io/videolan/preview/nuget/v3/packages/caliburn.micro.core/index.json 45ms error: NU1102: Unable to find package Caliburn.Micro.Core with version (>= 5.0.7-beta.gd8666d156c) error: - Found 23 version(s) in nuget.org [ Nearest version: 4.0.212 ] error: - Found 0 version(s) in /usr/local/share/dotnet/library-packs error: Package 'vb2ae.Caliburn.Micro.Maui' is incompatible with 'all' frameworks in project '[OUR PROJECT HERE]'.

We also tried to run the maui sample in the "feature/Maui" branch. But this fails with another excpetion.

Any ideas are very much appreciated as this is a huge blocker for us proceeding with the Maui migration.

vb2ae commented 1 year ago

not getting same error. do you have the same issue with the version on myget? https://www.myget.org/feed/caliburn-micro-builds/package/nuget/Caliburn.Micro.maui

jmeyerworms commented 1 year ago

Same error, new Maui projekt depends on .net 7

Restoring packages for ... GET https://api.nuget.org/v3-flatcontainer/caliburn.micro.core/index.json OK https://api.nuget.org/v3-flatcontainer/caliburn.micro.core/index.json 220ms NU1102: Unable to find package Caliburn.Micro.Core with version (>= 5.0.7-beta.gd8666d156c)

olliaustor commented 1 year ago

not getting same error. do you have the same issue with the version on myget? https://www.myget.org/feed/caliburn-micro-builds/package/nuget/Caliburn.Micro.maui

I used that link and it worked perfectly. But now we are having the same issues as @jmeyerworms. It seems that the beta version 5.0.34 beta is not available anymore.

@vb2ae Please add 5.0.34 beta for MAUI to myget (or somewhere else) so that it can be used.

vb2ae commented 1 year ago

Myget was down for a day or so. I did a new build so the package will be available on myget, going to look at getting the package on a github feed also.