dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.27k stars 1.76k forks source link

Some nugget for MAUI is not working for windows development, but works okay for Android. #25962

Closed vsfeedback closed 4 days ago

vsfeedback commented 4 days ago

This issue has been moved from a ticket on Developer Community.


After updating Visual Studio through the installer, Microcharts.Maui no longer works on the Windows app. The following exceptions are thrown: • System.NotSupportedException in WinRT.Runtime.dll • System.Reflection.TargetInvocationException in System.Private.CoreLib.dll

My steps: Create a .NET MAUI project. Add the Microcharts.Maui NuGet package. Initialize Microcharts.Maui in MauiProgram.cs: Add a chart to a page using Microcharts.Maui. Run the app on Windows. See the exceptions in the output. Expected behavior The app should run without exceptions, and the charts should be displayed correctly.

This issue occurs on a Windows x64 machine.

I tried the following steps to address: • Verified that all NuGet packages are up to date. • Created a minimal example to test Microcharts.Maui in isolation, which also failed.


Original Comments

Feedback Bot on 11/11/2024, 05:33 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

mattleibow commented 4 days ago

This may be a bug with microcharts, please first open an issue there.