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

Blazor Hybrid template creates a windows project that is not compatible with Xamarin.Essentials #1

Closed
MattBigYellowDesign opened this issue Dec 29, 2020 · 2 comments
Labels
blocked Issue is blocked by other work

Comments

@MattBigYellowDesign
Copy link

Creating a blazorhybrid app generates a number of sub projects, one for each deployment platform. The UWP project compiles and runs once edge canary is installed, however when attempting to use Xamarin.Essentials it has a runtime notimplemented exception, with the text :-

"This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation"

Looking closely at the template, it is a WPF project, not a UWP one, explaining why the runtime notimpl exceptions are thrown.

Android project can successfully use Xamarin Essentials.

Can the template be updated to improve the new-user experience such that Xamarin Essentials can be used across all platforms, not just the android/apple ones?

Many thanks

Matt

@Eilon
Copy link
Owner

Eilon commented Jan 5, 2021

Interesting! I wasn't aware that WPF didn't have almost any support on Xamarin.Essentials yet. It's not listed as a supported platform here: https://docs.microsoft.com/en-us/xamarin/essentials/platform-feature-support?context=xamarin/xamarin-forms

But it looks like there's a big PR in progress here to add WPF support: xamarin/Essentials#1079

So once that's available, it should enable these scenarios for all Xamarin-based apps, including Mobile Blazor Bindings.

@Eilon
Copy link
Owner

Eilon commented Jan 5, 2021

This issue was moved to dotnet/MobileBlazorBindings#282

Repository owner locked and limited conversation to collaborators Jan 5, 2021
@Eilon Eilon closed this as completed Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked Issue is blocked by other work
Projects
None yet
Development

No branches or pull requests

2 participants