.NET MAUI in .NET 8 - Everything you need to know!

Sdílet
Vložit
  • čas přidán 26. 06. 2024
  • .NET MAUI for .NET 8 is here! With hundreds of fixed, optimizations, performance enhancements, and new features, it is GO TIME for building multi-platform applications for iOS, Android, Mac, and Windows with .NET MAUI! In this video I am going to go over what's new, what you need to know, how to get it installed, and what is new in the projects. So.... let's go!
    Yes my hair is gone, but it has been donated to a good cause!
    Links:
    Blog Posts: devblogs.microsoft.com/dotnet...
    Migration: • Migrate to .NET MAUI f...
    Hybrid: • Building Hybrid Apps w...
    Menu Bars: • Create a .NET MAUI Men...
    Blazor Hybrid: • .NET MAUI + Blazor Hyb...
    First .NET MAUI App: • .NET MAUI Tutorial for...
    Xamarin to .NET MAUI Migration - learn.microsoft.com/dotnet/ma...
    Join this channel to get access to perks:
    / @jamesmontemagno
    👕 Buy some swag! - jamesmontemagno.myspreadshop....
    ☕️ Buy me a coffee - www.buymeacoffee.com/jamesmon...
    Chapters:
    00:00 - Introduction
    01:47 - What's new in .NET MAUI in .NET 8
    06:50 - Installing .NET MAUI in .NET 8
    09:50 - New template changes for .NET MAUI & Upgrading
    17:00 - Wrap-up & Final Thoughts
    Follow:
    👨‍💻 GitHub: github.com/jamesmontemagno
    🦜 Twitter: / jamesmontemagno
    📄 Website: www.montemagno.com
    📰 Newsletter: newsletter.montemagno.com/
    Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
    What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: cleclothingco.myshopify.com/
    What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: / bcez1onhiqx
    My Setup:
    📷 Canon M50 Mark II - amzn.to/3P8R7lp
    💡 Nanoleaf Elements Lights - amzn.to/3umwJVW
    🎙 Blue Spark Microphone - amzn.to/3qgtYkq
    🎙 Blue Pop Filter - amzn.to/3jEWM3r
    🤳 Rode Microphone Arm - amzn.to/2Z68AlE
    🎧 Sony MDR7306 Headphones - amzn.to/372jxta
    📲 Stream Deck - amzn.to/373Uk1n
    🖱 MX Master 2S Mouse - amzn.to/3d7J2gj
    ⌨️ Tecware Phantom Keyboard - amzn.to/3aUP4y9
    #dotnetmaui #dotnet #visualstudio
  • Věda a technologie

Komentáře • 119

  • @jfversluis
    @jfversluis Před 9 měsíci +41

    Can't wait for this one! Both the video and .NET version! 🐒

  • @hbschiller
    @hbschiller Před 9 měsíci +15

    Today I had a colleague asking for some support on some .NET dev and the first person I thought about was you and your CZcams channel and I realised how much I learnt from your content, so it's a symbolic gesture but to show appreciation! Keep it up!

  • @aluzza2541
    @aluzza2541 Před 9 měsíci +10

    The original James is finally back!

  • @dsuess
    @dsuess Před 9 měsíci +6

    The new haircut looks much better. It is the classic james!

  • @mikegrainger8082
    @mikegrainger8082 Před 9 měsíci +5

    Looking good James.

  • @jamesmwangi2491
    @jamesmwangi2491 Před 9 měsíci +2

    Looking great!!

  • @ecblanco
    @ecblanco Před 9 měsíci +4

    2015 James is back! xD

  • @the99Raver
    @the99Raver Před 9 měsíci

    Great haircut! Welcome back!

  • @kbsanders
    @kbsanders Před 2 měsíci +1

    Hair looks good 👍

  • @_jimbarton
    @_jimbarton Před 9 měsíci +1

    Aahahaha where'd all the hair go!! Exactly! Love it, thank ya Mr. Monty

  • @harrisonofthenorth
    @harrisonofthenorth Před 9 měsíci +1

    Nice hair, James, it's sort of been sinusoidal in length since Xamarin Forms 1.0 !!!

  • @letthemcode7199
    @letthemcode7199 Před 8 měsíci

    Glad the original is back. How about a maui device orientation video? All pages or just some pages and detection

  • @kkn385heyahsshshshd
    @kkn385heyahsshshshd Před 9 měsíci

    Nice haircut looks in my opinion better! BTW just askin, what do u think about a feature in visual studio like update maui version that would perform all that updates and reflect the changes to the proj files? That would be nice. Something like android studio has.

  • @ronistiawan1130
    @ronistiawan1130 Před 9 měsíci +2

    You looks a lot better🎉

  • @rushas
    @rushas Před 9 měsíci +3

    Wonderful energy! I like it

  • @ArafatTehsin
    @ArafatTehsin Před 8 měsíci +2

    Just upgraded my AI project built using .NET MAUI 7 to 8, just by following this video. James, I have no words to thank you on upskilling all of us in this journey.

  • @alexdodd5175
    @alexdodd5175 Před 7 měsíci +3

    Nice guide. Please make a similar one for the MacOS. My upgrade to net8 on that platform did not go as smooth and seamlessly as shown here for windows. So it would be a great thing to learn. Thanks in advance.

  • @imasurfa
    @imasurfa Před 6 měsíci +1

    the C# shirt yessss. I need to find mine

  • @ahmadkelany
    @ahmadkelany Před 3 měsíci

    Hello James,
    Thanks for your great content, It helped me so much back in Xamarin days and now with MAUI,
    I am having trouble now with using UDP port with my MAUI app,
    If it's possible to make a video about using MAUI app to send and receive data via UDP port it will be greatly appreciated.

  • @leenshim
    @leenshim Před 9 měsíci

    wow! looking good!!!! 😄

  • @ivcbusinesssystems6613
    @ivcbusinesssystems6613 Před 8 měsíci +6

    *I could care less about what's new & what's different, does it finally work right out of the box or not!*
    BTW, I do appreciate the hard work, but we need a product that we can use in production!

  • @khealer
    @khealer Před 9 měsíci

    I approve the manly look! Plus such easier maintenance.

  • @oidirk
    @oidirk Před 9 měsíci +1

    Hi James - I really find your videos very helpful, please keep them coming. One question I have is around XAML and .Net Maui docs. I generally know what I want to do with a UI but thee are so many options and switches. I think back to what I consider the golden days of programming in VB, Java and C++. What I miss the most are the awesome manuals that Sun used to put out. You would find one topic, IDE component or Method per one or two pages. It would in plain language tell you what it does and provide a simple in context example. It was well indexed and I could find things I wanted quickly. What I feel is lacking today is something similar. I know books cannot be a medium given how quickly .Net changes. But is there a good source where I can just search for say "border" and be show the various ways one can be used and in what context and with code examples. Regarding Microsoft docs - sorry but I have never found them to be that well organized. Sun takes the prize for me. They were big books but I wore them out! LOL

    • @light-water
      @light-water Před 7 měsíci

      Good question. Something like a primeng/primefaces for angular

  • @mailtonithik
    @mailtonithik Před 9 měsíci +2

    Hello James,
    Is it possible to programmatically enable the GPS service in .NET MAUI 8, similar to how it's done in other frameworks?

  • @soumyadipmajumder3450
    @soumyadipmajumder3450 Před 9 měsíci +10

    .NET MAUI is the future

  • @sheilainglin863
    @sheilainglin863 Před 9 měsíci +4

    Wow!!! Look at that clean shaven man!!! 😊😊😊😊😊❤

  • @hamzaougui6751
    @hamzaougui6751 Před 7 měsíci

    Amazing informative video james .. could you please make a tutorial about making push notifications when applicatiion is not running or phone started and app not open yet for Maui Blazor iOS

  • @AZisk
    @AZisk Před 9 měsíci +4

    Where is the hair? Welcome back!

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +4

      Donated to charity! 12" total! Now being turned into a wig for kids with hair loss!

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +1

      Where did my hair go!?!?! Donating hair to charity!

  • @user-bt3rc2xg8r
    @user-bt3rc2xg8r Před 9 měsíci

    nice cut man

  • @mr.phoenix8115
    @mr.phoenix8115 Před 8 měsíci

    Hii James , i have a 1 doubt in flyoutitem and tab bar item :
    Tab Bar has a Attribute to display a FlyoutItemIsVisible="False/True"
    But there is no attribute on flyout item to diplay Tabbaritemvisible
    Is that possible any other way to do it ?

  • @paulehigie9879
    @paulehigie9879 Před 9 měsíci

    Quick question: Is Maui Blazor app native or its just a wrapper like cordova/ionic

  • @muheebar-rahman8294
    @muheebar-rahman8294 Před 9 měsíci

    All this is great. But i want to change the top bar of my app on windows platform. There is no easy way to do that yet? When will that be implemented?

  • @davidburrell4799
    @davidburrell4799 Před 9 měsíci

    Always great video's James. Can you tell us if the Community Toolkit will work with .Net8 ? I'm assuming yes.

  • @khalil2099
    @khalil2099 Před 7 měsíci

    Hi, i have a question. If i build a blazor web app, is it easy as copy pasting it to .net maui blazor project files if i want to mobile app it ?

  • @Torquemadaaa
    @Torquemadaaa Před 9 měsíci +1

    Hello James.
    Maybe you have an impact on Microsoft's management, and can make it so that this demo weather app (which looks good I think) replaces inbox web-app in Windows 10/11?
    This will for sure show that Microsoft is interested in the framework.
    Thanks.

  • @skfalpink123
    @skfalpink123 Před 9 měsíci +1

    Finally !!! . Net 7.0 has been a nightmare of unreliability

  • @jvetter713
    @jvetter713 Před 9 měsíci +2

    Can you give us an update video on how to use Bluetooth LE? It seems there is still nothing out of the box which seems unbelievable.

  • @stevenparry1448
    @stevenparry1448 Před 9 měsíci

    Do I need to do anything in my Mac to make this work for IOS development. I connect remotely to the mac. Basically I can build and debug on a physical iOS device and I can build the app using the remote mac, But I can't debug on a virtual device. I get a "clang++ exited with code 1" error

  • @runtimmytimer
    @runtimmytimer Před 9 měsíci

    Much better look @James. I tried .NET MAUI with the initial release of .NET 6 and got so frustrated I just quit. I'm hoping .NET 8 provides a much improved experience and some important features I needed for my application.

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      It has come a long way since the first release that is for sure. I am really excited!

  • @jwcodendaal
    @jwcodendaal Před 9 měsíci +2

    Haha I have the same shirt. I still rock that too😊

    • @jwcodendaal
      @jwcodendaal Před 9 měsíci

      Still got the xamarin monkey too somewhere.

  • @anjumchauhan6990
    @anjumchauhan6990 Před 9 měsíci +2

    hi, When will we get the Firebase nuget package for .net 7/ .net 8? Is it in the pipeline ? We're struggling with the firebase integration as there is no firebase package provided by Microsoft for .net 7. Any tentative timelines would be great as we are having constant pressure from the client for firebase feature. Thank you in advance

  • @olagisrarikis
    @olagisrarikis Před 9 měsíci +3

    Now that Visual Studio for Mac is being discontinued, what do you need on the mac to be able to compile iOS from a PC?

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +1

      See: czcams.com/video/snQ1C6Cppr8/video.html

    • @davefb
      @davefb Před 9 měsíci

      @@JamesMontemagno Wish this wasn't the case, because I addressed "not being able to sign for distribution" by using visual studio for mac. I feel like I did 'exactly the same' set of steps, but on pc, it picked the wrong set of keys :/ on mac vs, it worked first time I tried.

  • @Taki7o7
    @Taki7o7 Před 6 měsíci

    only new thing i noticed is that they once again managed to "deliver" a broken boilerplate :D

  • @dotnetdevni
    @dotnetdevni Před 9 měsíci

    Right click edit project change 7 to 8 updated ur packages and ur done thats what I have always done

  • @guyincognito1985
    @guyincognito1985 Před 9 měsíci +2

    Nice hairs! 💈💇‍♂👱‍♂👍

  • @G5STU
    @G5STU Před 9 měsíci

    Upgrading as per you instructions didn't work for me, I just created a new project in VS preview with the same name space and dropped all my files in and all good. Thanks for the video, MAUI is great I just hope the desktop experience matures on the MAC side, very lacking at the moment.

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      Shoot me an email and let me know what went wrong. I had an older older project and i needed to update the files in the resources and a windows appxpackage file as well, but from 7 to 8 i didn't have issues

  • @harrydang5248
    @harrydang5248 Před 9 měsíci

    Did you upgrade the existing project from .net 7 to .net8? Do you have any errors?

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      When you upgrade you just need to change the TFM to net8 and then add those new items from the csproj and should be good to go

  • @G5STU
    @G5STU Před 9 měsíci +18

    Can you guys please cover more desktop for us desktop devs . I use flutter for mobile and winforms for desktop, I’m now trying (and failing miserably) to port my winforms app to Maui to get windows and Mac support. The lack of basic controls is very frustrating ! How to do basic dialog forms ? Why don’t context menus work on Mac ? Why do radio buttons look rubbish on Mac ? My app looks and functions great on window but on Mac it shockingly bad and buggy. Please help us…

    • @zoiobnu
      @zoiobnu Před 9 měsíci +2

      What basic controls are missing? Have labels, inputs, combobox and much more.

    • @G5STU
      @G5STU Před 9 měsíci

      @@zoiobnu Context Menu does not work on Mac (it turns into a swipe on ListViews). I'm unable to do the equivalent of Form.OpenDialog() (I guess I have to use a flyout but not the experience I'm looking for on a desktop UI). Tabbing from one Entry to another simply does not work on mac for me. Radio buttons are always black on Mac which is no good on a dark theme. I'm slowly coming to realise that I need to give up on replicating traditional desktop UX and just go with what MAUI can do. I've just updated to .net8 and it's much better than before, at least the list view on mac no longer has render glitches, so that's a massive win. I am noticing Entry text colours are not always applying correctly, sometimes the colour I set Is used, some times it's black, a clean and rebuild seems to fix it for most of my controls but not all, I have one Entry control that is set the current datetime bound to a vm property, that just will not pick up the correct text colour. Also, I can no long see my .xaml files in Visual Studio for mac (since updating to .net8), I think i'll have to switch to vs code. I'm happy enough now but I've had to admit defeat on many things I expect to be able to do. Context menus on mac really is the main pain point now, I'll have to check if they now work since updating to .net8, if not i'll have to figure out a work around.

    • @sigma_z
      @sigma_z Před 9 měsíci

      Just use a 3rd party lib for your controls.

    • @EvilGenius2909
      @EvilGenius2909 Před 9 měsíci

      Why are you not using Flutter for all platforms? Just curious

    • @zoiobnu
      @zoiobnu Před 9 měsíci

      @@EvilGenius2909 Because we has all stack with C# and .NET. Why we need to learn a new language, framework instead using all our knowledge with same environment ?

  • @DanielHarrisCodes
    @DanielHarrisCodes Před 9 měsíci +2

    Will this be supported in VS for Mac? I know it’s going away (sadly) but VS Code isn’t ready for prime time MAUI development yet.

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +1

      There is "technically" support for .NET 8 in Visual Studio for Mac, checkout the blog and release notes on how to get it up and running

    • @DanielHarrisCodes
      @DanielHarrisCodes Před 9 měsíci

      @@JamesMontemagno thanks I’ll get it setup this week. I’m hoping there’s some huge updates brewing for VS Code MAUI plugin as developing MAUI just feels faster and smoother for me on Mac (even as a long standing VS on Windows user, something just feels smoother. VS for Mac wasn’t perfect but felt like a nice blend between VS and VS Code since it supported the essential stuff for modern projects without too much legacy stuff cluttering it up)

  • @SamuelSidor
    @SamuelSidor Před 9 měsíci +2

    Thanks for the video James !
    But I am quite disappointed that MAUI ticket 1069 wasn't considered for .NET8. Because we use Maui Hybrid and having Web as a separate platform folder would improve our dev experience. Ofc this makes sense only for MAUI Hybrid and not for pure MAUI because then you would need to be able to render web UI from XAML.

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      In my Blazor Hybrid video you can just use your Blazor components/pages in a blazor app and share them between the projects with a Razor Class Library. Which is what the issue is looking for. They have fundamentally different startup and middleware at this point.

    • @SamuelSidor
      @SamuelSidor Před 9 měsíci

      @@JamesMontemagno We currently use this exact approach you describe. I know it is an issue that influence less people than some more general ones with wider reach and prioritizing other features probably makes more sense but still there is this small disappointment because this ticket was for a while tagget in .NET8 roadmap 😢

  • @josephl
    @josephl Před 9 měsíci

    Hey James, is there any features in .NET 8 we could use in .NET MAUI for biometric authentication? Could you make an updated video about the state of the art in this topic? All videos/docs I have found on the internet are really outdated. Thanks!

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      Top hit bing search www.c-sharpcorner.com/article/implementing-biometric-authentication-in-net-maui/ the native apis are always available

  • @geo0305
    @geo0305 Před 9 měsíci +4

    since microsoft will shut down vs for mac, will you make a video on how to set up .net maui for vs code?

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +2

      On it! I need to get a clean machine to set it all up properly :)

  • @rickkamp2
    @rickkamp2 Před 9 měsíci

    Nice haircut!

  • @vencislavvidov
    @vencislavvidov Před 9 měsíci

    new hairstyle:)

  • @user-sy4bq3fk6o
    @user-sy4bq3fk6o Před 9 měsíci

    does the restaurant food application open source?

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci

      Is available here: github.com/dotnet/maui-samples/tree/main/7.0/Apps/PointOfSale

  • @EdRawrDev5813
    @EdRawrDev5813 Před 9 měsíci

    Diosito please give us solidness 💜📱

  • @sandipbhagwatkar6475
    @sandipbhagwatkar6475 Před 6 měsíci

    how to share image and text both in single request

  • @istuart0
    @istuart0 Před 9 měsíci

    That's better James, before you looked like you had a comb-over!!!

  • @dmzone64
    @dmzone64 Před 9 měsíci

    I thought you mean your hair!!!!!

  • @dotnetdevni
    @dotnetdevni Před 9 měsíci

    Is James singing up to the army or something , or is he putting a ring on that wifes finger possibly ? Good to see the beard gone mate lol but god go clean shaving dude lol

  • @EvilGenius2909
    @EvilGenius2909 Před 9 měsíci

    This is funny how my comments about JetBrains Rider are disappeared :)

  • @lixiang3631
    @lixiang3631 Před 8 měsíci

    how about flutter

  • @johnsilver3804
    @johnsilver3804 Před 9 měsíci

    О, побрився)

  • @dudley810
    @dudley810 Před 9 měsíci

    Yah!! Where's your HAIR?

  • @ohiorenuaaigboje7500
    @ohiorenuaaigboje7500 Před 9 měsíci +1

    I am new to Maui, and I am coming from compose and flutter. Can do more videos without using xaml

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +2

      Checkout a good guide here: dev.to/smartmanapps/creating-maui-uis-in-c-1adf with lots of good links

  • @ericblankenburg
    @ericblankenburg Před 9 měsíci +2

    Microsoft has several mobile apps in the app stores that were built with React Native. How many Maui apps does Microsoft have? Any?
    Maui has fallen far, far behind React Native and Flutter in terms of mindshare and market share.
    Maui / XAML development also feels old and clunky.
    I can't help but think that Maui is the walking dead. Remember the promises made by Microsoft about Silverlight, before Microsoft pulled the plug? I think Maui we're seeing the same thing with Maui. It's not long for this world.

    • @TVsBen
      @TVsBen Před 9 měsíci +2

      I'm interested in and will continue following MAUI but I have a lot of the same reservations. The thing that always kept me from going React Native / Flutter is needing to learn Swift and Kotlin for platform-specific stuff, but I'm getting over that hump. I'm also learning that building UIs with native SwiftUI and Jetpack Compose isn't all that time-consuming.

    • @ericblankenburg
      @ericblankenburg Před 9 měsíci +3

      @@TVsBen - I've earned my living with Microsoft technologies since 1993. I love Microsoft. But sometimes they agitate the hell out me. Maui is the latest thing to agitate the hell out of me. Flutter can be used to build native mobile, web, and desktop apps. We should be able to do the same thing with Blazor.

    • @SamuelSidor
      @SamuelSidor Před 9 měsíci +1

      For this same reason we use Blazor for UI, because also in case MAUI would die like Silverlight (what theoretically wont happen because it is still opensource) we can migrate to Avalonia or Uno with minimal changes.

    • @JamesMontemagno
      @JamesMontemagno  Před 9 měsíci +2

      I would watch the session from build - czcams.com/video/-4SJvzGNZ_M/video.htmlfeature=shared which Maddy/David share a bunch of internal and external apps and companies building with .NET MAUI. .NET MAUI is new so hard to fall behind, it is only picking up steam and growing steadily.

    • @ericblankenburg
      @ericblankenburg Před 9 měsíci +1

      @@JamesMontemagno - I have already seen the video that you referenced. It doesn't answer my question. What technology is Microsoft itself using to build apps for the app stores? As far as I can tell, it's React Native. That tells me a lot.
      Also, Maui is not really new. It's an upgrade from Xamarin, which has been around a long time. Is Maui's market share growing faster than Xamarin's market share is shrinking?

  • @user-ds1sp8wt1u
    @user-ds1sp8wt1u Před 9 měsíci

    Ты подстригся и побрился - такой странный стал, я словно смотрю другой канал на те же любимые темы ))))))

  • @matiascasag
    @matiascasag Před 7 měsíci

    .NET MAUI for Linux??? I don't think so

  • @jandePoreNaire
    @jandePoreNaire Před 9 měsíci +1

    Make your hair great again

  • @lost-prototype
    @lost-prototype Před 9 měsíci

    Still no official Linux support and the "community supported" nonsense is a non starter.
    Any tech that tries to bait me into running Windows and VS is a hard nope as well.
    MAUI is dead tech walking and I wouldn't bet any part of a business on it. No matter how great and fantastic your teammates are.
    Give it time, MS will drop it.

  • @ryandemboski6313
    @ryandemboski6313 Před 5 měsíci +1

    hey James, does your Plugin.InAppBilling work with MAUI net8?

  • @omidtavana
    @omidtavana Před 9 měsíci

    Thanks for sharing.
    "dotnet publish -c Release -f:net8.0-android34.0" is not working anymore in the RC update.
    its preCompiled Error

    • @omidtavana
      @omidtavana Před 9 měsíci

      I have figured out the issue. It was caused by the MaterialDesignColor. I Issued the bug and I'm waiting for a fix or material design update 😥😥