appcenter-sdk-dotnet icon indicating copy to clipboard operation
appcenter-sdk-dotnet copied to clipboard

.NET MAUI MacCatalyst app is trying to load ''System.Windows.Forms'

Open dhindrik opened this issue 2 years ago • 22 comments

Description

Exception when running AppCenter.Start, it is trying to load ''System.Windows.Forms'. There are a similar issue for Windows, https://github.com/microsoft/appcenter-sdk-dotnet/issues/1693

Repro Steps

  1. Install the NuGet packages for crashes and analytics
  2. Add the AppCenter.Start in App.xaml.cs
  3. Run the App on MacCatalyst

Details

System.TypeInitializationException: The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

For full logs see the attached files.

Visual Studio Enterprise 2022 for Mac Pr.txt log (1).txt

dhindrik avatar Nov 24 '22 06:11 dhindrik

@dhindrik , thank you for creating a separate item! We will inform you once it is fixed.

DmitriyKirakosyan avatar Nov 24 '22 07:11 DmitriyKirakosyan

Facing the same here.

mhrastegari avatar Jan 30 '23 11:01 mhrastegari

Any updates on this?

zahrabayatt avatar Feb 10 '23 09:02 zahrabayatt

@zahrabayatt we are still working on this.

IlyaBausovAkvelon avatar Feb 13 '23 23:02 IlyaBausovAkvelon

Same issue :( It's very frustrating

kyurkchyan avatar May 16 '23 06:05 kyurkchyan

Another one with the same issue. Any fix coming or is this even being worked on?

tpitman avatar Jun 22 '23 14:06 tpitman

Is it a joke? Joined the party. Almost a year elapsed.

Mogikan avatar Jul 25 '23 17:07 Mogikan

We are facing the same problem here.

busitech avatar Aug 03 '23 01:08 busitech

Hello everyone, Due to shifting priorities, we've had to postpone the work on MAUI MacCatalyst. However, please note that this task remains a high priority on our board. We are committed to addressing the issue at the earliest opportunity. Thanks for your patience and understanding.

DmitriyKirakosyan avatar Aug 08 '23 10:08 DmitriyKirakosyan

Still facing this issue. Any ETA for a fix? It's been awhile.

AndreasReitberger avatar Aug 08 '23 16:08 AndreasReitberger

Hi there. I am reproducing the issue on a macBook PRO M1 with macOS Sonoma. My application is net7 using Avalonia 11

dfernandezramos avatar Nov 22 '23 08:11 dfernandezramos

Any updates on this?

indyjason79 avatar Dec 06 '23 17:12 indyjason79

Any news on this?

alimuhammadiiii avatar Jan 17 '24 17:01 alimuhammadiiii

Two years ago they stopped planning development for the next year and seemed to stop even maintaining this product. Created this product to kill hockeyapp and now stopped development. What are the alternatives for this obsolete product? Google Firebase?

Mogikan avatar Jan 23 '24 13:01 Mogikan

Wow, that's terrible news. Did Microsoft announce this officially?

busitech avatar Jan 23 '24 17:01 busitech

@busitech what I would consider at least an indicator for what @Mogikan is saying is that the roadmap was never updated since 2022: https://github.com/Microsoft/appcenter/wiki/Roadmap

NPadrutt avatar Jan 23 '24 21:01 NPadrutt

Not sure if this is being worked on, but I've been using the below change for a few months and its been working fine. Binaries for maccatalyst taken from the latest xcframework package.

Binaries Changes

thewizrd avatar Jan 24 '24 01:01 thewizrd

That's awesome! If it's working, why not doing a PR? @thewizrd

mhrastegari avatar Feb 09 '24 18:02 mhrastegari

Not sure if this is being worked on, but I've been using the below change for a few months and its been working fine. Binaries for maccatalyst taken from the latest xcframework package.

Binaries Changes

I am unclear how to use the 5.0.4 version. Even though it is marked latest, it is not visible in nuget. I am not a .NET expert, but is there a way to have my IDE (Rider) find this 5.0.4 nuget somehow?

tylerwilson avatar Feb 09 '24 18:02 tylerwilson

Hi everyone, I prepared the maccatalyst support PR, based on https://github.com/microsoft/appcenter-sdk-dotnet/issues/1702/#issuecomment-1907191123 (thanks a lot to @thewizrd). We will merge the PR once CI is fixed.

DmitriyKirakosyan avatar Feb 21 '24 09:02 DmitriyKirakosyan

@DmitriyKirakosyan And when (or how) does CI getting fixed? :") Because it seems you guys are pending/waiting for something...

mhrastegari avatar Mar 05 '24 20:03 mhrastegari

@DmitriyKirakosyan Any news about this fix?

vladPanasiuk avatar May 08 '24 07:05 vladPanasiuk