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

MAUI Testability #8

Open
Kebechet opened this issue Aug 15, 2023 · 0 comments
Open

MAUI Testability #8

Kebechet opened this issue Aug 15, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers .NET8 Waiting for new SDK update

Comments

@Kebechet
Copy link
Owner

Right now when you add InAppBilling Nuget into your MAUI project, the project wont be testable.
Because of:

error NU1202: Package Kebechet.Maui.RevenueCat.InAppBilling 1.0.5 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Kebechet.Maui.RevenueCat.InAppBilling 1.0.5 supports:
error NU1202: - net7.0-android33.0 (.NETCoreApp,Version=v7.0)
error NU1202: - net7.0-ios16.1 (.NETCoreApp,Version=v7.0)
error NU1202: - net7.0-maccatalyst16.1 (.NETCoreApp,Version=v7.0)
error NU1202: - net7.0-windows10.0.19041 (.NETCoreApp,Version=v7.0)

When I tried to add .NET7 as another TargetFramework I got:
<X> must have an implementation part because it has accessibility modifiers.

The reason behind it is that main MAUI app has to add pure .NET7 framework, so that unit-test library can link it. But this is not currently possible in library projects like this one. Apparently this should be fixed in .NET8:
dotnet/maui#3552
dotnet/maui#14847

@Kebechet Kebechet added enhancement New feature or request .NET8 Waiting for new SDK update labels Sep 13, 2023
@Kebechet Kebechet added the good first issue Good for newcomers label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers .NET8 Waiting for new SDK update
Projects
None yet
Development

No branches or pull requests

1 participant