Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MAUI App #2360

Open
nssidhu opened this issue Jan 6, 2022 · 55 comments
Open

Support for MAUI App #2360

nssidhu opened this issue Jan 6, 2022 · 55 comments
Labels
build Related to App Center's Build service distribute:delivery distribute Related to App Center's Distribution service do-not-close feature request New feature request

Comments

@nssidhu
Copy link

nssidhu commented Jan 6, 2022

Describe the solution you'd like
Support for .NET MAUI, which is replacing Xamarin & Xamrin.Forms.

Describe alternatives you've considered
Manually deploying then

Additional context
Add any other context or screenshots about the feature request here.

@nssidhu nssidhu added the feature request New feature request label Jan 6, 2022
@AnastasiaKubova AnastasiaKubova added distribute Related to App Center's Distribution service distribute:delivery labels Jan 6, 2022
@AnastasiaKubova AnastasiaKubova added the build Related to App Center's Build service label Jan 17, 2022
@carmanj
Copy link

carmanj commented Feb 7, 2022

We're waiting on this too. We're actively working on migrating from Xarmain.IOS to a MAUI-based app. It would be super helpful to us if we could continue to use AppCenter (which we currently use for CD/CI/build/distribution/diagnostics) for the MAUI app. I understand that MAUI is still in preview, but if AppCenter could also support it in a 'preview' mode, that would be greatly beneficial to us. This would avoid us having to manually provision/distribute devices to our internal Alpha testers and other stakeholders.

Thanks!

@JohnHDev
Copy link

Xamarin.UITests worked up until preview 12 of .NET Maui.
Also, using the CLI we can install .NET Maui and build on our pipelines and run UI tests.
With preview 12 however, the Xamarin.TestCloud nuget can no longer be installed in a Maui project and existing projects need to have it removed.

Can someone take a look at this?

@Mephisztoe
Copy link

I second this. Although I am fine with building my apps at Azure DevOps and then push the artifacts to AppCenter, with .NET MAUI Preview 14, the AppCenter libraries seem to break builds...

So at least Analytics, Crashes and Distribution should still work with .NET MAUI. I am not sure about In-App-Updates yet though...

@ghost ghost added the Stale label May 28, 2022
@ghost
Copy link

ghost commented May 28, 2022

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@JohnHDev
Copy link

The fact that this has been marked as stale by the microbot is due to the fact we haven’t had a reply from MS.
Anything?
Anyone?
Maui is now GA. In case you were wondering.

@SophisticatedConsulting
Copy link

Please can this be resolved and MAUI support for AppCenter provided...
See issue marked by @jfversluis above.
How can we have an MS strategy to deprecate Xamarin shortly and no or late support from various MS supporting technologies/libraries?
MS please respond.
Thanks in advance.

@Wynadorn
Copy link

Wynadorn commented Jul 12, 2022

There's been some conversation about this here:

Tweets from the MAUI PM say that the AppCenter features compatibility for MAUI are WIP:
https://twitter.com/maddymontaquila/status/1537883335552139267?s=20&t=dJ2QllLIBROA4mo8a4XGDQ
https://twitter.com/maddymontaquila/status/1537778954630725632?s=20&t=PEXg9bxcGj-FtixaK4WmeQ

Originally posted by @rudyspano in dotnet/maui#315 (comment)

@MichaelShapiro
Copy link

Please add support for MAUI projects.

@dimitar-sd
Copy link

Waiting for build, distribution and diagnostics support (not to stores yet) for iOS and Android for MAUI.

@dgerding
Copy link

Any news? I'm poking around related projects trying to see... just need any ux test support, build to test center would be awesome, too.

@jeanplevesque
Copy link

jeanplevesque commented Sep 1, 2022

Same here. We really need the Crashes and Analytics packages to support the net6.0-ios and net6.0-android targets.

@Mephisztoe
Copy link

Two weeks ago, the AppCenter team said: "we are currently working on it. The next release should include the full support for dotnet 6 and MAUI."

@mnxamdev
Copy link

mnxamdev commented Sep 7, 2022

Any update on the timeline for App Center Build support to be able to build .Net MAUI apps?

@EmmanVazz
Copy link

+1 Can't really even attempt to migrate to MAUI if this app center build and crash reports don't work/

@KSEL270715
Copy link

we are using AppCenter for Analytics ,Diagnostics and App Distribution in our Xamarin Projects.
Now doing MAUI Migration, Is there any timeline for MAUI AppCenter support.

@Mephisztoe
Copy link

Apparently, something's happening right as we discuss...

https://www.nuget.org/packages/Microsoft.AppCenter/5.0.0-preview.1

Also:
https://twitter.com/jfversluis/status/1575470486863200256

@JohnHDev
Copy link

This is awesome news! So Maui hasn't been abandoned after all!
Now we just need the UITest nuget rebuilt for .NET 6 and we are good to go!!!

@wisdeom
Copy link
Contributor

wisdeom commented Sep 30, 2022

Hi @Mephisztoe and all! Our 5.0.0-preview.1 contains .NET 6 target. It should work for Distribution, Analytics, and Diagnostics packages. We'd love to get your feedback on this preview release. Please let us know and stay tuned with us for the full support for dotnet 6 and MAUI in the near future!

@AuriR
Copy link

AuriR commented Dec 23, 2022 via email

@stephenhauck
Copy link

@davidortinau we asked here too ...

@stephenhauck
Copy link

@wisdeom , @jamesmontemagno , @maddymontaquila , @davidortinau, @jfversluis

Bump .. anyone ...
image

@AuriR
Copy link

AuriR commented Jan 28, 2023

In the meantime, I guess you can try this. You don't get distribute, so 1/3 the benefit of AppCenter - the automatic distribution - is gone.

iOS: https://www.andreasnesheim.no/setting-up-ci-for-your-net-maui-ios-app-in-azure-devops/
Android: https://www.andreasnesheim.no/setting-up-ci-for-your-net-maui-android-app-in-azure-devops/

@stephenhauck
Copy link

@AuriR thanks for the links but honestly most of us don't care about Azure or we would have moved there

Since Microsoft seems to have abandon MAUI (over 2000 issues on Github) and AppCenter I am looking into using
Codemagic ... the reason is that if Microsoft doesn't make some SERIOUS progress real quick most of my customers ARE NOT UPGRADING FROM XAMARIN TO MAUI .... they are moving to Flutter instead ...

https://codemagic.io/start/

@JohnHDev
Copy link

I think its clear AppCenter is dead, at least for build pipelines. Either move to Azure DevOps (lots of resources available for that) or move to a different hosted build provider. Stamping your feet here won't help (Ive been there done that, got the ulcer) as they aren't listening to you. Save yourself some stress and make the jump, we have ADO build pipelines creating and deploying .NET MAUI apps to the relevant stores, it works.

@somoreingold
Copy link

somoreingold commented Jan 30, 2023

@JohnHDev Have you come across a resource/tutorial that integrates the two (Azure DevOps and App Center) seamlessly? e.g. An Azure DevOps build that seamlessly feeds into App Center for the test/distribute/etc. part? I think I agree, we should assume MAUI builds within App Center are probably a no-go...

@EntityBox
Copy link

I’m building the app via CI/CD via Azure, similar steps as per the link from @AuriR, with the addition of the AppCenter task (Build Task Link).

@IgorKravchenko10 - I get the same error when building to a local/physical device but not in release mode on the pipeline. It might have something to do with debug mode in iOS.

@dj-dev - Select Xamarin and use the same keys/code in your mauiprogram.cs with AppCnter.Start(), code on Xamarin is the same as MAUI.

@jfversluis created a video explaining the bits & pieces: (YouTube Link) - Thanks Gerald

@pfedotovsky
Copy link

pfedotovsky commented Mar 13, 2023

Using many hacks and the fact that AppCenter's pre-built script allows you to do almost everything due to sudo support, I was able to build a NET MAUI app with AppCenter.

Tested with Debug|iOSSimulator build, the resulting app can be downloaded from App Center and installed on iOS Simulator.

The trick is to replace Mono's msbuild with .NET 7 SDK msbuild and disable the nuget restore step within AppCenter.

Here's the appcenter-post-clone.sh script:

#!/usr/bin/env bash

echo "Post-clone script executing..."
echo "CPU architecture: $(uname -m)"
echo "dotnet version: $(dotnet --version)"
echo "dotnet path: $(which dotnet)"

# Install MAUI iOS workload
dotnet workload install maui-ios

# Use msbuild from .NET SDK
echo """#!/bin/sh
PATH="/usr/local/bin/dotnet:$PATH"
exec dotnet build \"\$@\"
""" | sudo tee /Library/Frameworks/Mono.framework/Commands/msbuild

# Use dummy nuget to restore
echo """#!/bin/sh
echo Dummy Restore
""" | sudo tee /Library/Frameworks/Mono.framework/Commands/nuget

And the test app can be found here: https://github.com/pfedotovsky/maui-appcenter.
This hacks don't work with Release|iPhone builds, due to different msbuild settings on Mono and .NET SDK.

But, it should be possible to do the entire build with NET SDK in pre-built script and skip all the rest :)
But at this point it's probably easier to wait for official support or switch to GitHub Actions or Azure DevOps.

@snow-jallen
Copy link

I'm speechless. @maddymontaquila do you have anything new to share about the status/future of AppCenter + MAUI?

@pzimmermaninmo
Copy link

pzimmermaninmo commented May 11, 2023

Yeah as much as I really like appcenter, it does sound like microsoft is no longer going to support it. I'm planning to switch to github actions: https://devblogs.microsoft.com/dotnet/devops-for-dotnet-maui/.

For now, as far as I understand it, AppCenter (nuget package) supports MAUI for error/crash logs so I will still probably use them for that (even though a lot of the stack traces aren't that useful, especially since they don't contain line numbers or when they happen outside of managed/mono world. From what I understand though, thats just a xamarin/mono limitation for mobile development)

@stephenhauck
Copy link

stephenhauck commented May 11, 2023 via email

@jjohnnyl
Copy link

We are about to migrate to Maui from XF but the lack of App Center support is holding is back. I'd just like a "Yes, we are going to support it" or "No, we aren't going to support it".

@AlexeyStarkov
Copy link

AlexeyStarkov commented Aug 1, 2023

Hey! Since Xamarin is dead de-facto, we have to start migrating our applications to MAUI. HOWEVER, despite MAUI being officially released a long time ago, it seems like no one tried to contact the AppCenter team to share this exciting news with them. Or Microsoft forgot AppCenter exists. Anyway, as a result, MAUI isn't supported by AppCenter. It means I can't create a MAUI app project and build&distribute test apps to my QAs and stakeholders.

HEY @wisdeom, @jamesmontemagno, @maddymontaquila, @davidortinau, @jfversluis, Microsoft promotes MAUI hard and, in theory, it's an awesome product. BUT Even the most luxurious Rolls Royce is useless if its doors can't be opened. We need AppCenter to build and distribute apps to testers and stakeholders!!!

It's unbelievable that AppCenter supports React.Native, but doesn't support MAUI which is a product of Microsoft...

@pzimmermaninmo
Copy link

Even though I've already planned to move off appcenter, shot in the dark @lucen-ms since you seem to be the last person to commit to this repo, yay or nay on the plans for supporting maui or even .net 6+ in appcenter?

cc @akamenev Since you are the second to last person to commit to this repo.

@pzimmermaninmo
Copy link

pzimmermaninmo commented Aug 1, 2023

Yolo cc @satyanadella (damn, doesnt actually exist)

Edit: Oh shit, he just didnt show up in the list of options but it is his @

Edit 2: @wisdeom (last to add blog posts to appcenter blog)

@IeuanWalker
Copy link

@AlexeyStarkov you can build your app in azure devops or github action and send it over to appcenter

@AlexeyStarkov
Copy link

@AlexeyStarkov you can build your app in azure devops or github action and send it over to appcenter

Unfortunately, it's a workaround. With full AppCenter support (e.g. Xamarin support), our testers can easily build and distribute test builds of selected branches anytime with few clicks and without engaging developers. Besides, there is almost no chance of a tester breaking something important. Moreover, they can easily modify the config of an application by editing the environment variables of a pre-build script. The way you propose seems to significantly complicate the entire workflow. However, thank you for the idea. I'll check it out

@IeuanWalker
Copy link

Our testers do the same but through devops, no developers needed.

You can set up variables for them to change as needed, and no chance for them changing/ breaking anything as your yaml files are in source control.

Building your own pipeline gives you more ability to customise the process.

We moved from appcenter build years ago to give us more control and make the process easier for our testers. This is all our testers need to do, select the pipeline and click run now (change branch/ variables as needed) -
image

@AlexeyStarkov
Copy link

@IeuanWalker I've made a quick PoC with Android. It seems to be working. Thanks for your advice!

Still hope the Microsoft will come up with some intuitive solution which doesn't smell hacky.

@AndrewScott-Ingram
Copy link

is this still a problem? we wont be using Maui if it is.

@stephenhauck
Copy link

No blog post activity since Dec 22
https://devblogs.microsoft.com/appcenter/

@AuriR
Copy link

AuriR commented Mar 18, 2024 via email

@timvandenhof
Copy link

Have you seen the announcement that AppCenter will retire? I think we won't see MAUI support in the future. Just use Azure DevOps or Github Actions instead. See their migration guide as well: https://aka.ms/appcenter/retire

@AndrewScott-Ingram
Copy link

great so they buy HockeyApp, and then kill it.. great system gone to pot.. will need to look at something else then.

@AuriR
Copy link

AuriR commented Mar 20, 2024 via email

@stephenhauck
Copy link

Azure is overly complicated with too much BS .... Appcenter was simple, focused and functional ...

@AndrewScott-Ingram
Copy link

lol, as much as things can be opensource, this is not one of these kind of products, you still need to pay for servers/infrastructure to perform the builds, load balancing etc, and then there's the support from MS and other vendors to make their code ie Maui build on it and deploy to Google and Apple, so properly support it, open source just wont be able to do that without significant investment from someone who wont own the code or the rights to run it as a paying service (unlikely), I didn't mind paying for all of that headache to be removed from my pipelines or work force. MS has its own agenda and is pushing to get people on their platforms, they wont bite to keep a competing platform they bought to kill running. anyway keep well all its been fun.

@AuriR
Copy link

AuriR commented Mar 20, 2024 via email

@AndrewScott-Ingram
Copy link

Well, if the community or a business won't support it, I don't know why we'd expect Microsoft to, given they have competing services and teams. Bummer.

________________________________ From: AndrewScott-Ingram @.> Sent: Wednesday, March 20, 2024 7:05 AM To: microsoft/appcenter @.> Cc: Auri A. Rahimzadeh @.>; Mention @.> Subject: Re: [microsoft/appcenter] Support for MAUI App (Issue #2360) lol, as much as things can be opensource, this is not one of these kind of products, you still need to pay for servers/infrastructure to perform the builds, load balancing etc, and then there's the support from MS and other vendors to make their code ie Maui build on it and deploy to Google and Apple, so properly support it, open source just wont be able to do that without significant investment from someone who wont own the code or the rights to run it as a paying service (unlikely), I didn't mind paying for all of that headache to be removed from my pipelines or work force. MS has its own agenda and is pushing to get people on their platforms, they wont bite to keep a competing platform they bought to kill running. anyway keep well all its been fun. — Reply to this email directly, view it on GitHub<#2360 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXHGDHPGOIEOMHHBSPDVL3YZFUQPAVCNFSM5LLEDNS2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQHEZTCMZQGY3A. You are receiving this because you were mentioned.Message ID: @.***>

I was a paying customer for many years with both HockeyApp and then AppCenter. we have some work to do now to port our pipelines to other services. so not sure what you mean by businesses not supporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to App Center's Build service distribute:delivery distribute Related to App Center's Distribution service do-not-close feature request New feature request
Projects
None yet
Development

No branches or pull requests