Building .NET Hybrid Apps with Blazor

Ғылым және технология

WebView2 is Microsoft's new embedded web browser control, built on top oHybrid apps are native apps that use web technologies for the UI. In this session we'll look at how you can use Blazor to build hybrid apps using .NET instead of JavaScript. We'll explore building .NET hybrid apps for mobile and desktop using the experimental Mobile Blazor Bindings, and then discuss our plans for supporting cross-platform hybrid desktop apps with .NET 6 and .NET Multi-platform App UI.
Get your questions answered on the Microsoft Q&A for .NET - aka.ms/dotnet-qa
#DotNet

Пікірлер: 93

  • @user-mj3ft7cx5n
    @user-mj3ft7cx5n3 жыл бұрын

    Awesome! Thanks Daniel Roth, Eilon Lipton and xamarin engineers for yours great work!!

  • @lasindunuwanga5292
    @lasindunuwanga52923 жыл бұрын

    Wow This made me crazy No more js or node It is just my favourite C# everywhere Love it Thanks MS Team 💞

  • @lasindunuwanga5292

    @lasindunuwanga5292

    3 жыл бұрын

    @@internet4543 node? You mean both Node and .NET on server side. No did not know that. Plus, I think Blazor even replaces JS in front end. That is the main goal right?

  • @rogitube

    @rogitube

    3 жыл бұрын

    Preach 🙏

  • @iandrsaurri625
    @iandrsaurri6253 жыл бұрын

    This man seriously decided to show you can do native desktop stuff by trying to format his own drive. I love it LOL

  • @kristofszabo666

    @kristofszabo666

    3 жыл бұрын

    This is why I'm waiting for .Net 6! I love these people! 😀😀

  • @jebwatson

    @jebwatson

    3 жыл бұрын

    Living life on the edge of a breakpoint

  • @omarwasfi

    @omarwasfi

    3 жыл бұрын

    😂😂😂😂

  • @nikhilnavare

    @nikhilnavare

    2 жыл бұрын

    🤣🤣🤣

  • @leakyabstraction
    @leakyabstraction3 жыл бұрын

    Wow, can't wait for .NET 6, based on what was said. Probably I'll jump into Blazor at that point.

  • @jeanpaulberrios5024
    @jeanpaulberrios50243 жыл бұрын

    Excellent current blazor mobile binding have to be part of Maui for sure! I’m totally agree so fast to learn to work with Blazor and wasm, easy to understand and deploy every where. Excellent !

  • @abduls4592
    @abduls45922 жыл бұрын

    your excitement is telling that how beautiful is the future of .Net Core (PAW and SPA.-progressive web app and single page apps) Thumbs Up!

  • @waynejones1083
    @waynejones10833 жыл бұрын

    Great demo; really excited by this technology

  • @joaolucasgtr
    @joaolucasgtr3 жыл бұрын

    That's impressive! I liked the way you can inject ContextState inside a component... it reminds me of service injection from emberjs. That's a really useful feature! Awesome job!

  • @buka.a
    @buka.a3 жыл бұрын

    This is gonna end Javascript frameworks in dotnet communities

  • @tomleeson9383
    @tomleeson93833 жыл бұрын

    incredible awesome just what was needed...

  • @jd31068
    @jd310683 жыл бұрын

    Exciting stuff!

  • @wobuntu
    @wobuntu3 жыл бұрын

    Love it! But I don' really get why I would use MAUI if I can now use web technologies for my UI... No more rewriting of hundreds of lines of XAML template code just to change a tiny detail on a control, or writing restrictive storyboards for just animating some color transition (which anyways never look that smooth as if they were rendered in a browser) -- I'm serious, what would be the advantage to stick to XAML except for porting existing apps?

  • @thanhdungnguyen6816
    @thanhdungnguyen68163 жыл бұрын

    Nice, thank you

  • @naunihalsidhu
    @naunihalsidhu3 жыл бұрын

    Would you bring the ability to migrate/upgrade existing Blazor webassembly app to HybridApp as well or we would have to redo everything again in Hybrid App?

  • @IroxX0
    @IroxX02 жыл бұрын

    this is a godsend

  • @parsalotfy
    @parsalotfy2 жыл бұрын

    Love it

  • @khalednabilcs
    @khalednabilcs3 жыл бұрын

    This is might sound crazy 😃 but can we minify the C# dll 😎?

  • @Courserasrikanthdrk
    @Courserasrikanthdrk3 жыл бұрын

    ,, i liked the car project thanks very much

  • @afouadr
    @afouadr3 жыл бұрын

    Brilliant

  • @user-hz1yc6cw6k
    @user-hz1yc6cw6k3 жыл бұрын

    Why you chose that legacy control names from Xamarin? I mean StackLayout, Label and other staff invented in the times when Xamarin wasn't yet bought by Microsoft to bypass legal restrictions for APIs.

  • @eduardomoraes2819
    @eduardomoraes28193 жыл бұрын

    Hi, I am a software engineer (embedded) who wants to learn more about .Net and web/mobile dev (front and back end) within the platform. What is the best way to start? Any online courses as well? Thanks!

  • @mdora3983
    @mdora39833 жыл бұрын

    I am asking because of couldn't watch completely the video. To develop hybrid app should I use webview embedded browser or not? Thanks for yuour answering

  • @MegaKlintan
    @MegaKlintan3 жыл бұрын

    I am considering hybrid for migrating an existing monolithic WPF app towards a microservice architecture where at least some microservices should expose their own UI. Authentication is one issue, the WPF app authorizes users in Azure AD, we don't want another login in each microservice.

  • @yudhibayu8834
    @yudhibayu88343 жыл бұрын

    awesome, but for some security reason we still need signal R, where many local hosting not support signal R. I will wait until MAUI

  • @rayfan5648
    @rayfan56483 жыл бұрын

    How do I get that auto rebuild and auto refresh happen? Do I need to install any VS extensions?

  • @kristofszabo666

    @kristofszabo666

    3 жыл бұрын

    Just go to the server folder of your project and in the terminal/PowerShell, and type: dotnet watch

  • @realivanjx
    @realivanjx3 жыл бұрын

    Will blazor desktop be available on earlier windows versions since webview2 supports as far as windows 7?

  • @francescomantovanelli8774
    @francescomantovanelli87743 жыл бұрын

    Where I found specific OS command es. for dialog, command shell etc?

  • @hfe1833
    @hfe18332 жыл бұрын

    The Rise of C# ,once the blazor become stable in mobile app ,no doubt C# will take over on python or JS

  • @Tymonello
    @Tymonello3 жыл бұрын

    Can a .NET hybrid app work offline and send data to a server after it gets online?

  • @asif7127
    @asif71273 жыл бұрын

    I just host it iis super fast ifeel compare to asp page(dummy page).thank you

  • @DhirenPathak
    @DhirenPathak3 жыл бұрын

    Great

  • @codeecubix
    @codeecubix3 жыл бұрын

    is the uno platform different from the approach?

  • @makariyu69
    @makariyu693 жыл бұрын

    What sorcery is this

  • @francescomantovanelli8774
    @francescomantovanelli87743 жыл бұрын

    can Building .NET Hybrid Apps run as web pages in browser?

  • @luissalinas1471
    @luissalinas14712 жыл бұрын

    it's a good video, I have a question, how can I made the apk for installation in my cell phone?

  • @iwaitucn
    @iwaitucn3 жыл бұрын

    When I use blazorhybrid to create a project, I can not use mudblazor theme

  • @amitloutube
    @amitloutube3 жыл бұрын

    How do I customize asp.net blazer login page?

  • @680ashraf
    @680ashraf3 жыл бұрын

    Can I access local database like sqlite and SQL server...??

  • @MichaelKonovaliuk

    @MichaelKonovaliuk

    3 жыл бұрын

    Of Course! Why not?)

  • @francescomantovanelli8774

    @francescomantovanelli8774

    3 жыл бұрын

    only in local net. If your scenario are remote net you can dev API backend that call sql

  • @francescomantovanelli8774

    @francescomantovanelli8774

    3 жыл бұрын

    @@MichaelKonovaliuk only local

  • @robertgreen2518
    @robertgreen25183 жыл бұрын

    I have a 20 year old web forms app. Such a pity I cant just add new blazor pages to this old app. Trying to convert the entire app at once is way too much work.

  • @andrewbeeman9083

    @andrewbeeman9083

    3 жыл бұрын

    “I have an old app I didn’t update for 2 decades, please do my job for me”

  • @robertgreen2518

    @robertgreen2518

    3 жыл бұрын

    @@andrewbeeman9083 An app that was doing its job that only needed minor updates over the years. Its a tough choice to spend lots of time/money learning new tech when the existing old app works fine but obviously looks and feels massively outdated. I am looking for a way to create new pages in a new technology and update pages as needed. Also only recently have the company asked for an android app that would work with it. Anyway I understand your sarcasim

  • @SuperGURU_Ben

    @SuperGURU_Ben

    3 жыл бұрын

    @@robertgreen2518 as far as I understood, if you migrate your app to windows forms .net 5, then you can use the hybrid approach. There is no one stopping you from using blazor webview in winforms AFAIK. So you could start changing one control at a time. That's how I understood it.

  • @lehayoureaseparatist733

    @lehayoureaseparatist733

    Жыл бұрын

    As I heard you can add some features in webview in winforms AFAIK

  • @xBalaDeCanhaox
    @xBalaDeCanhaox3 жыл бұрын

    OMG my eyes !! This white theme on Windows!!

  • @arwahsapi
    @arwahsapi3 жыл бұрын

    Clearly Microsoft should rework on Blazor that it should be able to detect if the client already has the assemblies without redownloading the entire assemblies

  • @DavidKochheiser
    @DavidKochheiser3 жыл бұрын

    So now Blazor and MAUI are doing the exact same thing? Doesn't give me warm and fuzzies starting a new project with Blazor or MAUI

  • @BinaryLizard

    @BinaryLizard

    3 жыл бұрын

    Exactly my thoughts. Too many competing technologies from their own stack. Don't forget Electron. All this fragmentation reminds me of the days when Microsoft at one stage had 4 different XAML schemes, none of them compatible: WPF, UWP, WinRT and Xamarin Forms

  • @TheCodifier

    @TheCodifier

    3 жыл бұрын

    The difference between both is Blazor Hybrid is rendering the web app in a Blazor webview on the device while MAUI is actually rendering native components on the target device. For instance, on Windows, MAUI translates to WinUI while Blazor is running in a webview. Same principle on MacOS, iOS and Android. Blazor Hybrid is similar in principle to Cordova while MAUI is similar to React Native. Depending on the application, translating to native controls might give a faster and more responsive UI.

  • @RonaldZaZ
    @RonaldZaZ3 жыл бұрын

    Just missing linux desktop apps

  • @philippelhaus
    @philippelhaus3 жыл бұрын

    Fuck i love Blaz0r

  • @XELTRA1
    @XELTRA13 жыл бұрын

    how he do that ,save and auto refresh??

  • @ModeEmoON

    @ModeEmoON

    3 жыл бұрын

    cli command "dotnet watch run"

  • @BinaryLizard
    @BinaryLizard3 жыл бұрын

    at 18:50: 4 syntaxes in one file: Xaml, HTML, Razor and C#. Ouch.

  • @BinaryLizard

    @BinaryLizard

    3 жыл бұрын

    @@internet4543 Not remarking about separation of concerns in my UI layer. I’m remarking on 4 syntaxes in my UI layer, arguably competing to achieve the same goal.

  • @BinaryLizard

    @BinaryLizard

    3 жыл бұрын

    @@internet4543 Can you point me to the results of a survey where “most people who don’t find it ouch” ?

  • @BinaryLizard

    @BinaryLizard

    3 жыл бұрын

    @@internet4543 React is awesome. I’m a React developer after moving over from Xamarin. I prefer JSX , which allows for just 2 syntaxes in the same file. But from my initial remark, Xaml and HTML are both from the XML family, and both so the same thing : presentation.

  • @BinaryLizard

    @BinaryLizard

    3 жыл бұрын

    @@internet4543 You’re right there. I was tempted to go Angular/Typescript with Ionic for my mobile apps, but as you say, React has won the heats of most cross platform mobile devs. I’m not sure if Maui will win the Xamarin devs back from React. I think Maui is trying to be what Flutter is. But while Maui is running on the very slow Mono Runtime on Android , I can’t say I will be returning. It’s just embarrassingly slow and my clients complain about it. But each to their own. I think a developer’s existing skill set and apetite for a steep learning curve plays a big role in adoption.

  • @dvygolov
    @dvygolov3 жыл бұрын

    That's great, but what about Linux, guys?

  • @westray2521
    @westray25213 жыл бұрын

    How do you do hot reloading? Why I can not ?

  • @franciscojavieralba9170

    @franciscojavieralba9170

    3 жыл бұрын

    it´s .net 6 i guess

  • @vukilesimelane2033

    @vukilesimelane2033

    3 жыл бұрын

    @@franciscojavieralba9170 for sure since they said .net 6 will have it

  • @vukilesimelane2033

    @vukilesimelane2033

    3 жыл бұрын

    same here, i have been wondering why

  • @martinrj30

    @martinrj30

    3 жыл бұрын

    In powershell go to server folder, dotnet watch

  • @vukilesimelane2033

    @vukilesimelane2033

    3 жыл бұрын

    @@martinrj30 thanks mate

  • @BinaryLizard
    @BinaryLizard3 жыл бұрын

    at 14:10: "Blazor Hybrid apps combine all the benefits of native apps. Blazor Components run natively on the device, they don't run in the browser and web assembly is not involved. Your components then render into an embedded web view control" Such a confusing set of statements. To paraphrase: - It doesn't run in a browser, but it actually it does. WebView Control is actually what a Browser uses as well. - "The components run natively". But actually they actually run an embedded browser and there's interop. Sounds a lot like Phonegap. Hate to break it to ya, just because its running in the phones "native browser" does not make it a native app. Don't get me wrong, I love Microsoft, always will , but contradictions and nonsense sound like smoke and mirrors.

  • @bitzartdev

    @bitzartdev

    2 жыл бұрын

    very true

  • @alphaprimal1669
    @alphaprimal16693 жыл бұрын

    is Microsoft abandoning XAML ? I much prefer Xaml over HTML/Css

  • @alphaprimal1669

    @alphaprimal1669

    3 жыл бұрын

    @@internet4543 in a way I do agree, but I like the way xaml interoperates with C#/F# code, and how it forces the separation of declarative code of xaml and backend code of C#, html/css don't do that

  • @renegade5942
    @renegade59423 жыл бұрын

    The only thing that made .net core the most loved framework is that it was available in linux so it would be awesome of .Net maui is in linux also otherwise most developpers would prefer React/flutter

  • @joseluisdeoliveirasantos9131
    @joseluisdeoliveirasantos91313 жыл бұрын

    Could I imagine something like this at 1998? Noooooo! Oh, maybe at 2002? Nah! So, cold I do it at 2015? Nooooooo! Since QBasic on MS-DOS, by the first time, I can really think about it! And it is fast! Wow! 🙄 ...man, as you can see, I think I'm to old...

  • @keyboard_g
    @keyboard_g3 жыл бұрын

    Goodbye electron

  • @zealtypedcode3119
    @zealtypedcode31192 жыл бұрын

    More Promising Than MAUI

  • @remo8798
    @remo87983 жыл бұрын

    hahahaha nice gas and electron joke

  • @dskim2459
    @dskim2459 Жыл бұрын

    Why do so many of the guys who speak regarding .NET/Visual studio have such a poor mic compared to the effort and dedication to the content?

  • @icavalheiro
    @icavalheiro3 жыл бұрын

    You lost me when the create command for blazor bindings created projects for all major platforms but not for Linux.

  • @kiquenet
    @kiquenet3 жыл бұрын

    Add link to Car Checker code, pls

  • @swankyshivy

    @swankyshivy

    3 жыл бұрын

    yes plz. link to code

  • @HaoNguyen-km9xj
    @HaoNguyen-km9xj3 жыл бұрын

    Nice, nice I'm not interest in everything have the word "java",....

  • @Imperial_Dynamics
    @Imperial_Dynamics3 жыл бұрын

    bye bye Javascript (and rot in hell!)

  • @realfootball338
    @realfootball3383 жыл бұрын

    The biggest Microsoft mistake - they every time like to do one instrument for everything. Today .net core good at back-end api development. So use the Pareto principle, extend this power side

Келесі