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
Awesome! Thanks Daniel Roth, Eilon Lipton and xamarin engineers for yours great work!!
Wow This made me crazy No more js or node It is just my favourite C# everywhere Love it Thanks MS Team 💞
@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
3 жыл бұрын
Preach 🙏
This man seriously decided to show you can do native desktop stuff by trying to format his own drive. I love it LOL
@kristofszabo666
3 жыл бұрын
This is why I'm waiting for .Net 6! I love these people! 😀😀
@jebwatson
3 жыл бұрын
Living life on the edge of a breakpoint
@omarwasfi
3 жыл бұрын
😂😂😂😂
@nikhilnavare
2 жыл бұрын
🤣🤣🤣
Wow, can't wait for .NET 6, based on what was said. Probably I'll jump into Blazor at that point.
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 !
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!
Great demo; really excited by this technology
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!
This is gonna end Javascript frameworks in dotnet communities
incredible awesome just what was needed...
Exciting stuff!
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?
Nice, thank you
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?
this is a godsend
Love it
This is might sound crazy 😃 but can we minify the C# dll 😎?
,, i liked the car project thanks very much
Brilliant
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.
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!
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
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.
awesome, but for some security reason we still need signal R, where many local hosting not support signal R. I will wait until MAUI
How do I get that auto rebuild and auto refresh happen? Do I need to install any VS extensions?
@kristofszabo666
3 жыл бұрын
Just go to the server folder of your project and in the terminal/PowerShell, and type: dotnet watch
Will blazor desktop be available on earlier windows versions since webview2 supports as far as windows 7?
Where I found specific OS command es. for dialog, command shell etc?
The Rise of C# ,once the blazor become stable in mobile app ,no doubt C# will take over on python or JS
Can a .NET hybrid app work offline and send data to a server after it gets online?
I just host it iis super fast ifeel compare to asp page(dummy page).thank you
Great
is the uno platform different from the approach?
What sorcery is this
can Building .NET Hybrid Apps run as web pages in browser?
it's a good video, I have a question, how can I made the apk for installation in my cell phone?
When I use blazorhybrid to create a project, I can not use mudblazor theme
How do I customize asp.net blazer login page?
Can I access local database like sqlite and SQL server...??
@MichaelKonovaliuk
3 жыл бұрын
Of Course! Why not?)
@francescomantovanelli8774
3 жыл бұрын
only in local net. If your scenario are remote net you can dev API backend that call sql
@francescomantovanelli8774
3 жыл бұрын
@@MichaelKonovaliuk only local
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
3 жыл бұрын
“I have an old app I didn’t update for 2 decades, please do my job for me”
@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
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
Жыл бұрын
As I heard you can add some features in webview in winforms AFAIK
OMG my eyes !! This white theme on Windows!!
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
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
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
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.
Just missing linux desktop apps
Fuck i love Blaz0r
how he do that ,save and auto refresh??
@ModeEmoON
3 жыл бұрын
cli command "dotnet watch run"
at 18:50: 4 syntaxes in one file: Xaml, HTML, Razor and C#. Ouch.
@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
3 жыл бұрын
@@internet4543 Can you point me to the results of a survey where “most people who don’t find it ouch” ?
@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
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.
That's great, but what about Linux, guys?
How do you do hot reloading? Why I can not ?
@franciscojavieralba9170
3 жыл бұрын
it´s .net 6 i guess
@vukilesimelane2033
3 жыл бұрын
@@franciscojavieralba9170 for sure since they said .net 6 will have it
@vukilesimelane2033
3 жыл бұрын
same here, i have been wondering why
@martinrj30
3 жыл бұрын
In powershell go to server folder, dotnet watch
@vukilesimelane2033
3 жыл бұрын
@@martinrj30 thanks mate
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
2 жыл бұрын
very true
is Microsoft abandoning XAML ? I much prefer Xaml over HTML/Css
@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
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
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...
Goodbye electron
More Promising Than MAUI
hahahaha nice gas and electron joke
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?
You lost me when the create command for blazor bindings created projects for all major platforms but not for Linux.
Add link to Car Checker code, pls
@swankyshivy
3 жыл бұрын
yes plz. link to code
Nice, nice I'm not interest in everything have the word "java",....
bye bye Javascript (and rot in hell!)
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