Get started with .NET 8 MAUI Preview and Visual Studio on Mac

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] foreign [Music] today I will show you how to get started with the.net 8 preview for Dr Maui on Mac I run this in Paradise on a virtual machine because I want to separate previous software from what I'm using from my daily work so but I had some problems setting up parallels it was not possible to change this size by default so I had to run script to create the virtual machine but I will add a link to that in the video description if you want to do that too so when going to the preview we can read the blog post from David ortino so this is the latest one let's first talk about some new features of dotnet Maui and this preview release but if you go to the end we can see what we need to do to install this update on our machine so we have Windows just install the preview of visual studio so then we have if you are on Mac OS you can develop using visual studio for Mac after enabling the preview feature in.net 8 in preferences and installing.net 8 preview 7 from the installer so I have done that and as you can see here for Windows it said you should use preview of Visual Studio and of course I went there and installed a preview of the visual studio for Mac 2. so then if you go to preferences here and we go to preview features there are no.net 8 here and that is the preview and then I opened Visual Studio the stable version because I have both of them because it's no problem to run them side by side but then I check the version number and I realized the preview has an older version number than the stable version really strange if you ask me because the preview should be the one that have the newest features but okay I close the preview and I open the the stable one or the release one and then I want the preferences preview features down here and here we have it use the dotnet 8 SDK and that makes it possible for me to run dot net 8. but what I also had to do is go to the.net page and and download the sdk4.net 8 preview 7. so you should go to dotnet.microsoft.com and then download and then here you have get.net8 preview and for Mac you go here and select arm 64 if you have a M1 or an M2 or otherwise you go for x64 and also for my virtual machine I'm running on my M1 I should use the arm 64 one and the last step I need to do is to install the dotnet Maui workload so to do that we go to terminal we make sure that we run on.net 8 by typing.net dash dash version and here you can see 8.0.00 previous 7 and then some other numbers so sudo .net work load install Maui then you need to type your password and now it will install the workload for net Maui so we don't need to wait for that because I've already done that so we can go and create a new project .net Now app and now we can see that we can select all your target Frameworks that you have installed so for that now it can be 678 I have not six installed so I can only select between seven and eight so we take dotnet 8. give the project a name not a demo and we create it so everything looks like it used to do 1.7 but if we open.net 8 demo and edit project file we can see some difference here of course we have net 8 instead of dot Net 7 and that's something you need to change if you upgrade of course but here we can take a look that what packages we installed and we can see that we also have this Microsoft Maui don't controls and that's something you need to add 4.net 8 because it will get the control packages like that if we remove those like that now if we go and press build and we go to the build output you can soon see here that we will get a message about this here warning ma002 starting with net eight setting use Maui to True does not automatically include nuget package reference in your product link upload your product by including this item project reference include Microsoft malware controls okay you can also skip this Warning by setting um package reference in your product file but if they say that I should have it I of course add it so that is something you can think about when you're updating from from.net 7 to the hub 8 that you can add those nuget packages so I have not played around very much with this preview but I realized that some bugs I have with dotnet 7 is fixed in.net 8 and that's a good thing even if I wish that they could add the bug fixes already now 2007 but yeah maybe I will run.net 8 for all my projects from now because it seemed to work pretty well for example I had a visual State manager in one project that did not work as it should when on Focus from a control but with.net 8 it works like a sharp and I plan to do more videos about.net malware and.net8 very soon I will show you what's new what's improved and how to use it and so so if you like my video please subscribe to my channel and now you can also be a member and that means that you will support the channel and make possible for me to create more videos but you will also get early access to videos and you'll also get the source code if I do Demos in the videos so thank you very much for watching this video see you next time bye bye
Info
Channel: Daniel Hindrikes
Views: 2,676
Rating: undefined out of 5
Keywords:
Id: EGttIzsvtog
Channel Id: undefined
Length: 7min 2sec (422 seconds)
Published: Fri Aug 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.