microsoft / appcenter-sdk-dotnet

Development repository for the App Center SDK for .NET platforms, including Xamarin
Other
311 stars 141 forks source link

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

Closed dhindrik closed 6 months ago

dhindrik commented 2 years ago

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

DmitriyKirakosyan commented 2 years ago

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

mhrastegari commented 1 year ago

Facing the same here.

zahrabayatt commented 1 year ago

Any updates on this?

IlyaBausovAkvelon commented 1 year ago

@zahrabayatt we are still working on this.

kyurkchyan commented 1 year ago

Same issue :( It's very frustrating

tpitman commented 1 year ago

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

Mogikan commented 1 year ago

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

busitech commented 1 year ago

We are facing the same problem here.

DmitriyKirakosyan commented 1 year ago

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.

AndreasReitberger commented 1 year ago

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

dfernandezramos commented 1 year ago

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

indyjason79 commented 11 months ago

Any updates on this?

alimuhammadiiii commented 10 months ago

Any news on this?

Mogikan commented 10 months ago

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?

busitech commented 10 months ago

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

NPadrutt commented 10 months ago

@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

thewizrd commented 10 months ago

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

mhrastegari commented 9 months ago

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

tylerwilson commented 9 months ago

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?

DmitriyKirakosyan commented 9 months ago

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.

mhrastegari commented 8 months ago

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

vladPanasiuk commented 6 months ago

@DmitriyKirakosyan Any news about this fix?

mhrastegari commented 6 months ago

Still having this issue with Microsoft.AppCenter.Crashes on v5.0.4 .NET Version: 8.0.300

Screenshot 2024-05-29 at 14 31 33

AndreasReitberger commented 6 months ago

As far as I can remember, AppCenter is shutdown by end of March 2025. So I guess there will be no efforts to fix this issue at all...

MikhailSuendukov commented 6 months ago

Hello, the AppCenter .NET SDK v5.0.4 has been released, including a fix for this issue. Therefore, I am closing this issue.

mhrastegari commented 6 months ago

Did you even test it? 🙂 @MikhailSuendukov

tylerwilson commented 6 months ago

Same, just tried 5.0.4 and same issue:

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' --- End of inner exception stack trace --- at Microsoft.AppCenter.ApplicationLifecycleHelper.get_Instance() at Microsoft.AppCenter.AppCenter..ctor() at Microsoft.AppCenter.AppCenter.get_Instance() at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services) at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)

domneedham commented 5 months ago

Also facing this issue still with 5.0.4 for Maccatalyst.

sovdchains commented 5 months ago

5.0.5 seems to have fixed the issue

MikhailSuendukov commented 5 months ago

Hello, the AppCenter .NET SDK v5.0.5 with the fix for this issue has been released.

Mogikan commented 4 months ago

Forget about appcenter. It is now officially announced that they will shutdown website next year.

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

Yes