-
Notifications
You must be signed in to change notification settings - Fork 149
uwp project missing #41
Comments
It wasn't added mostly due to time constraints. You should be able to manually add a UWP project by creating one as part of a Xamarin.Forms project, but pointing it at your shared UI project with Mobile Blazor Bindings. We will look into adding a UWP template here as well. |
Also please note that we've never tried it, so if you do try it, please let us know if it works or if you ran into any issues. |
I don't know if I am doing it right, but I get an exception: System.PlatformNotSupportedException: 'EventLog access is not supported on this platform.' On the line:
|
Oh darn. Generic Host has a few default things that don't seem to be working on iOS or UWP. I will investigate and get an answer. @Tratcher / @glennc - do you know how I can use Generic Host, but disable certain default things, such as EventLog, file watchers for config changes, etc.? This is how Generic Host is used in the templates: |
@Tratcher new HostBuilder() did the trick, thank you. UWP is working.. (Do you still need the stack trace?)
|
Ah, there's an isWindows check, but that's not good enough for UWP. Feel free to file an issue on that. |
there should be proper documentation how to do add uwp support in MobileBlazorBindings . there is well documented docs for xamarin forms in case uwp needs to be added later and earlier was not selected for creation , i tried to take that reference and failed seems there is difference between this and xamarin forms xaml page app |
@vscodewinodws I'm keeping this issue to track proper UWP support. |
@Eilon can look at how I do it: https://montemagno.com/add-asp-net-cores-dependency-injection-into-xamarin-apps-with-hostbuilder/ |
@jamesmontemagno I gone through your link I am familiar with asp.net core and Xamarin still I am not able to closely relate it how it will solve my problem I still think there should be step by step documentation which will help all developer like we have for Xamarin forms |
Another option is to remove the EventLog source like so in the webhost builder .ConfigureLogging(d =>
{
d.ClearProviders();
d.AddConsole();
}) |
@chrisevans9629 that works on UWP and Android but throws PlatformNotSupported on iOS :) |
var host = new HostBuilder() works on UWP and iOS, but not Android |
So it looks like there's a MobileBlazorBindingsHost that works. @Eilon I have added a UWP project for the Hello World sample, do you want a PR? I could take a stab at the other samples too. |
Thank you I will take a look! BTW sorry things have been a bit slow. I'm home with 2 kids full time due to virus lockdown and daycare not available. But I assure you that I spent what previous little time I have on Mobile Blazor Bindings! |
Hi! I am delighted with this. Is there any news? |
by generating project described in blog
https://devblogs.microsoft.com/aspnet/mobile-blazor-bindings-experiment/
creates android and ios project missing uwp projects , why hate for windows from Microsoft ?
we need UWP app along side with this projects.
The text was updated successfully, but these errors were encountered: