How to Package and Deploy NET MAUI App for Windows

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome back to another coding flamingo video so in this video we're going to look at how to deploy your application so you already built your net malware application now you want to package it and deploy it or even package it and just test it around in this case we're going to use a self-signed certificate so this would just be kind of for testing it within your company and then the only difference from this is if you want to release it to the world for site loading you would just have to buy a code signing certificate from a trusted certificate authority and everything else stays the same you just change the certificate first thing we have to do is go into our package dot app x manifest and this is under the windows under platforms under windows and in here we just have to make sure that our publisher will match the name of our certificate in this case we're creating the certificate so we just have to make sure that we copy this and put it but if you're using a code signing certificate make sure that the publisher matches exactly the subject name of the certificate after that we have this script don't worry this is all in my github that is linked down below so just go there if you want to just copy it but as you can see here i set a variable for the certificate subject name so that one matches exactly the name on the publisher on the app manifest and then after that we're just gonna go ahead and create a self-signed certificate with the subject name that we specified then we're just gonna call it coding flamingo self sign so i'm just gonna go ahead and run this and this will actually create it so as you can see here it's going to be in current user my so here is personal certificates anything here i go coding flamingo we'll see the one that we just created and as you can see it has a big x around it that means that the computer currently doesn't trust it because it's a certificate that is not in the trusted root source certificates so what we have to do is copy this to a file export it make sure you don't export the private key usually private keys should be protected either with an hsm or something if it's like a real certificate in this case just protected by your search store and not exporting it and having it all over the place then we're just going to select a file here we're just going to call it coding flamingo or coding and we're gonna save it next thing we have to do is add it to the trusted root certificate but i've noticed that it didn't work and if i just add it to my personal one so you have to add it to the local machine you have to have administrator permission for that and here we go to the trusted root certificates we're gonna just do an import we're gonna select the certificate that we just exported now it's here so if we go back up here you can see that big hex is gone so now we're ready to build next thing we have to do is just get the certain thumb print to pass it to our build environment and basically what we're doing is just saying find the one that has our subject name and give me the thumbprint and that's just kind of like a serial number of the certificate after that we just have to add the environment path to visual studio and the signing kit and lastly we're just gonna build it here you can see i'm in the file where the solution is so everything is just gonna be local but if not you would have to put like the full path or something or just navigate there we're gonna do a ms build with restore and we're gonna publish for windows we're doing a configuration for release generate the apex package true signing enabled true and then it asks for the certificate thumb print that's why we got it up here after that we just run this and as you can see here at the bottom it's going kind of crazy and now it's going ahead building the solution and signing it and now they've finished building we can go into the files and here's where the solution is go to bin release windows app packages maui and here we can see the certificate that was used for signing and we can see the msix and all we have to do next is just click install and this is going to go ahead install it and launch it and that's how you package your myway application to run on windows thank you for watching and i'll see you in the next one
Info
Channel: Coding Flamingo
Views: 10,042
Rating: undefined out of 5
Keywords: .net maui, dotnet maui, dotnet maui tutorial, .net maui tutorial, .net 6 maui, .net 6, .net maui example, codesign, deploy, visual studio 2022, dotnet maui getting started, .net maui preview, .net maui app, dotnet maui blazor, .net maui blazor, dotnet 6, .net 6 maui preview, tutorial, getting started, .net 6 maui tutorial, .net 6 features, windows tray icon, dotnet maui windows, .net 6 blazor desktop, how to, how to code, dotnet windows, .net windows, maui windows
Id: 1Y06yuPEFC0
Channel Id: undefined
Length: 4min 4sec (244 seconds)
Published: Mon Mar 28 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.