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

[Bug]Getting Target error when Targeting Maui App to .net 7.0 #354

Open
Rishi2611 opened this issue Mar 22, 2024 · 5 comments
Open

[Bug]Getting Target error when Targeting Maui App to .net 7.0 #354

Rishi2611 opened this issue Mar 22, 2024 · 5 comments
Labels

Comments

@Rishi2611
Copy link

I am targeting maui app to .net 7.0 and getting error micro charts not supported on .net 7.0
Code:-
net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst

I am using this because I have added Unit Test Project respective to this project and have added reference of the the main project in unit test project, when i am running unit test app I am getting error micro charts not supported on .net 7.0

@Rishi2611 Rishi2611 added the bug label Mar 22, 2024
@ISSPRO-Eng
Copy link

Same here. Following this

@albanfavresysmed
Copy link

Same with .Net 8

@BillyMartin1964
Copy link

Yeah, even when I exclusively say not for .net 8, I can't get it to recognize Microcharts:

 <ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
   <PackageReference Include="Microcharts.Maui" Version="1.0.0" />
 </ItemGroup>

Severity Code Description Project File Line Suppression State Priority Details
Error (active) CS1061 'MauiAppBuilder' does not contain a definition for 'UseMicrocharts' and no accessible extension method 'UseMicrocharts' accepting a first argument of type 'MauiAppBuilder' could be found (are you missing a using directive or an assembly reference?) BeachBallApp (net8.0), BeachBallApp (net8.0-android34.0), BeachBallApp (net8.0-ios) D:\AppsMaui\BeachBallProperties\BeachBallApp\MauiProgram.cs 71 Normal

@rajput400
Copy link

rajput400 commented Oct 1, 2024

Facing the similar issue, it has something to do Microcharts.Maui is not compatible with .Net 7/8, but rather its compatible with .Net7/8 Android, Windows, IOS.
Also mentioned in the Compatibility Sections
Built in views are provided for:
UWP
Xamarin.Forms, Xamarin.iOS and Xamarin.Android, Xamarin.macOS
.NET MAUI (Windows, Android, iOS, and macOS)
WinUI (Windows App SDK)
And any other .NET Standard 2.0 SkiaSharp supported platform is also compatible (see one of the included ChartView implementations for more details).

Will have to see if there is way-out to fix it.

@follesoe
Copy link

Are you using it off NuGet or building from source? I see that the version published on NuGet in Aug 2023, is only compatible with net6.0-ios and net6.0-android (and hence, iOS and Android versions of .NET 7.0 and 8.0).

The repo contains newer code where net7.0;net7.0-ios;net7.0-android are the target frameworks, but this code is not published to NuGet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants