Create a .NET MAUI Windows MSIX to Sideload Or Publish to the Microsoft Store

  Рет қаралды 18,235

Gerald Versluis

Gerald Versluis

Күн бұрын

Пікірлер: 151
@jfversluis
@jfversluis 2 жыл бұрын
Want to learn how to release your apps for iOS and Android as well? Check the links right below 👇 iOS: kzfaq.info/get/bejne/odaKnJipptzUinU.html Android: kzfaq.info/get/bejne/oMyDicWQt7ibiGQ.html
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
Hi Gerald , Is there any other argument we need to paas in this msbuild command for MAUI Blazor Windows Apps? I tried this on the blazor Windows app, it is throwing build target error.
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
\source epos\MauiAppDeployTest\MauiAppDeployTest.sln" (Publish target) (1:2) -> "C:\Users\user\source epos\MauiAppDeployTest\MauiAppDeployTest\MauiAppDeployTest.csproj" (Publish target) (2:18) -> (_GenerateAppxSymbolPackage target) -> C:\Users\user\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\Microsoft.Build.Msix.Packaging.targets(341,5): error MSB6011: Invalid parameters passed to the Microsoft.Build.Msix.Symbols.WinAppSdkCheckF astlinkPdb task.
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
Solved when installed MSVC Latest version. Thanks for this video.
@mikehouweling6297
@mikehouweling6297 2 жыл бұрын
Yes! Great video! I was waiting for this one! Thanks a lot Gerald 😁
@jfversluis
@jfversluis 2 жыл бұрын
Great! Let me know how it goes!
@mikehouweling6297
@mikehouweling6297 2 жыл бұрын
I will! 👍
@PticostaricaGS
@PticostaricaGS 2 жыл бұрын
Oh man, thanks a lot for this video. Extremely useful.
@jfversluis
@jfversluis 2 жыл бұрын
Good luck!
@sps014
@sps014 2 жыл бұрын
Great video, Missed MAUI next preview uodate video from you , hoping to see it soon.
@jfversluis
@jfversluis 2 жыл бұрын
I figured there wasn't much to update to be honest! But I think there is still one important thing that might be good to mention... I'll see if I can record something quick about it. Thanks for being a fan! :D
@konstantinguselnikov5616
@konstantinguselnikov5616 2 жыл бұрын
Thank you Gerald, this is a very useful useful stuff.
@jfversluis
@jfversluis 2 жыл бұрын
Great, thanks!
@dotnotstandard
@dotnotstandard 2 жыл бұрын
Hi Gerald. Thanks for the video, very interesting. I'm not used to MSIX/signed app distribution, so this is more of a question about that really. I'm wondering about what happens when the signing certificate expires. Presumably the app cannot be installed on a new machine after the certificate with which it was signed has expired? Will it even run after that point - is the signing only checked at the time of installation, or each time it executes? Do the answers to these vary between self-cert and an official dev signing cert from a trusted authority? My guess is that, if self-certifying/side-loading, then the certificate needs to be regenerated and reinstalled each time it expires. Is it true to say that this will not be an issue with an official dev certificate from a root authority, as they do not need to be installed (because the cert signing chain goes up to a root cert that is installed, and presumably managed via Windows Update or similar.) I'm imagining how cert expiry might make creating a small app more difficult, as you might have to repackage/republish it regularly, so that a package is always available for download that is signed with a current certificate? In other words, if I published an app and then didn't ever republish it - because it needed no updates - then it would pass the point at which installation can be carried out because the cert has expired? Thanks in advance.
@muheebar-rahman8294
@muheebar-rahman8294 Жыл бұрын
Hi Gerald, Could you make a video on publishing with automatic updates on? because I cannot get the installer path to work. Thanks
@jvillaro
@jvillaro 2 жыл бұрын
Great video! Thanks!
@jfversluis
@jfversluis 2 жыл бұрын
Thanks José!
@rashmih8774
@rashmih8774 11 ай бұрын
Thank you so much for the detailed video. I followed all the steps for self signing and it works great in my local machine. Where as if I copy the app package in different machine then it install successfully but do not launch my application. And I Checked the error in EventViewer it says "C:\Windows\System32\KERNELBASE.dll". Any help is greatly appreciated
@charlesemge3824
@charlesemge3824 2 жыл бұрын
Great Content - Love this Channel! Maybe I posted my video idea incorrectly (looks like it got deleted) -sorry. Great show! Keep up the good work!
@jfversluis
@jfversluis 2 жыл бұрын
KZfaq sometimes aggressively deletes comments that it shouldn’t. Sorry about that! Thanks for the kind words!
@bity-bite
@bity-bite 2 жыл бұрын
Great video as usual. I'm kind of disappointed of Xamarin.Forms and MAUI due to the fact of how hard it is to style native UI controls. I absolutely love how Flutter does it, beautiful UI as easy as it gets.
@jfversluis
@jfversluis 2 жыл бұрын
Thank you! Sorry to hear that. I think it's important to realize that Flutter and .NET MAUI differ on this point fundamentally. With .NET MAUI we're definitely investigating to also achieve this easier, but that will come in a later stage. You might want to check out Microsoft.Maui.Graphics.Controls for a nice initiative that tries to do this.
@yunusozan
@yunusozan Жыл бұрын
Hello, how can we change expire date on self signed certificates?
@SeenuMahalakshmi
@SeenuMahalakshmi Ай бұрын
Hi jerald, i have one question target platform only windows. When try to upload sideload package Generateappxpackage issue occur. When using command line publishing it works fine. But why it not working. Another question as well when try to command prompt is there any option to nuget package for particular path. Thanks advance
@roman-k
@roman-k Жыл бұрын
Hi Gerald, how make a package that supports auto update feature on appstart? There seams to be an option in the VS publish wizard but I can't seem to use it right. Maybe there are bugs in VS? So I have to use the console commands. Thank you for your videos!
@jfversluis
@jfversluis Жыл бұрын
I don’t think you can publish from Visual Studio just yet. You’ll have to use the command-line. The auto updating is part of ClickOnce deployment if I’m not mistaken which is not supported yet but I think we’re looking into it. Thank you for watching!
@davejarcher
@davejarcher 2 жыл бұрын
Hi Gerald. Has this process now changed with the latest versions of VS2022 Preview, and do you follow the same process for a Blazor Hybrid application when you wish to deploy to the Windows Store, or Sideload?
@jfversluis
@jfversluis 2 жыл бұрын
The process changes in the sense that you can now use dotnet publish, but you can still use msbuild as well. The process for a Blazor Hybrid app is exactly the same as it’s still a .NET MAUI app :) Updated Docs can be found here: docs.microsoft.com/dotnet/maui/windows/deployment/overview
@ahmedfawzy5165
@ahmedfawzy5165 2 жыл бұрын
That is what I call good educational content, I have a question, when starting a new project on widows in .net maui preview 13 there is this grey thick title bar and it's very annoying do you have any idea how to remove it? also do you know how can I package the app without the msix package with a normal installation wizard like most programs? Thanks in advance.
@jfversluis
@jfversluis 2 жыл бұрын
Thank you! I don’t know about the title bar, sorry. For the other; if you just take the dlls and exe from the output folder you should be able to put that in an installer
@Adam-vp5ur
@Adam-vp5ur Жыл бұрын
Hi Gerald. Thank you for this video. I get the following error when using the Developer Powershell in Visual Studio 17.5.4 "Improper project configuration: WindowsPackageType is set to None, but GenerateAppxPackageOnBuild is set to true" I get the same error for each of the 4 projects that my .Net Maui references. Hope you can assist. Thanks
@jfversluis
@jfversluis Жыл бұрын
Check your Properties/launchSettings.json. Looks like it says None in there for the commandName, but that should be MsixPackage
@snooki9
@snooki9 2 жыл бұрын
Hi Gerald Thanks for that. Something that I wonder, is the fact to publish your app on a store (Windows, Google , Apple…) protect it from being « cracked » (By than i mean copy to an other computer without upload it on the store). Or is it something that should be think about in the app code ?
@jfversluis
@jfversluis 2 жыл бұрын
Publishing to the store should help with that, but nothing is perfect. There was this library to detect certain things in your code if that's what you want: github.com/nmilcoff/BreachDetector
@xxThemoritzxx
@xxThemoritzxx 2 жыл бұрын
Thanks for all the nice Videos about publishing to Play- , App- and Windows Store. If you have some experience with the ML.net, can you make a video about this in combination with MAUI? Greetings
@jfversluis
@jfversluis 2 жыл бұрын
Thank you! Unfortunately I don't have a lot of experience with that, sorry
@joelBalmer1
@joelBalmer1 22 күн бұрын
Love your videos both professionally and personally! Quick question - if I need my MSIX to work on older versions like windows server 2016, would it work to use MSIX Packaging Tool to edit my generated msix package to include MSIX Core support to the package? Thanks :)
@jfversluis
@jfversluis 22 күн бұрын
Thanks Joel! To be honest I don’t know. My gut tells me it won’t work but that’s not based on a whole lot. But of course feel free to try and let me know!
@GiovanniGambino
@GiovanniGambino Жыл бұрын
Hi Gerald, I did my first porting from WPF to MAUI. AMAZING and EASY! Now I'm trying to understand how "automatic update for a sideload app" works. I mean: is it enough to copy the published content to an IIS folder? Have I to rename some package? Have I to add some file? Have I to add extra code to my app? I have some confusion for this task. Can you make a video to explain pratically the procedure or if you have a link that describes a step by step procedure, can you share? thank you so much! :)
@chezchezchezchez
@chezchezchezchez Жыл бұрын
You find out?
@GiovanniGambino
@GiovanniGambino Жыл бұрын
@@chezchezchezchez not. I gave up at last
@RubenHeerenDev
@RubenHeerenDev 2 жыл бұрын
Thanks for the awesome video. For me the AppPackages was in the following location (not x64): C:\Users\Ruben\SolutionName\ProjectName\bin\Release et6.0-windows10.0.19041\win10-x64\AppPackages\ProjectName_0.1.0.0_Test Edit: Oops. I forgot to specify /p:Platform=x64 . Now it's there.
@jfversluis
@jfversluis 2 жыл бұрын
Glad you figured it out!
@egvijayanand
@egvijayanand 2 жыл бұрын
11:24 one small correction, GenerateAppxPackageOnBuild needs to be defined on the PropertyGroup node and not on the ItemGroup node.
@jfversluis
@jfversluis 2 жыл бұрын
Ah you're right, didn't look closely enough! :) Thanks!
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
@Vijay Anand E G Can we deploy the MAUI Blazor app on non dev machine? Any other way?
@egvijayanand
@egvijayanand 2 жыл бұрын
@@Swarajcookingnfun Support for Non-Packaged apps is yet to be provided with .NET MAUI. Expecting it to get enabled soon.
@jamalfazeli9127
@jamalfazeli9127 2 жыл бұрын
Hi, Thanks a lot, but I've got some error when I install distributing msix app on other computers. "app installer failed to install package dependencies. ask the developer for microsoft.windowsappruntime.1.0 package." How can I solve this?
@jfversluis
@jfversluis 2 жыл бұрын
Check in your csproj if you have a reference to the WindowsAppSDK NuGet package and if so you should be able to remove it. Hopefully it will be better then.
@carlosmedina742
@carlosmedina742 7 ай бұрын
How do I install it in Windows 7, I have even tried to install the msix package tools so that there will be msix files but when I install it I get an error with the certificate, I follow the steps that I do with Windows 10 to install the certificate and in Windows 10 I It lets the application run perfectly but in Windows 7 it seems that it does not recognize the certificate that has already been installed
@jfversluis
@jfversluis 7 ай бұрын
I don’t think windows 7 is supported by WinUI
@robertocruz231
@robertocruz231 2 жыл бұрын
Hi Gerald excelent video, I have a question, . Net MAUI is ready to develop apps in production? Thanks in advance
@jfversluis
@jfversluis 2 жыл бұрын
Thanks Roberto! That is basically up for you to decide. It’s still in preview so there are no guarantees from Microsoft, but if you test the areas you need and it feels sturdy enough… go for it! I know of production apps with .NET MAUI in the app stores today
@jamalfazeli9127
@jamalfazeli9127 2 жыл бұрын
Tried to install the .Net MAUI app project from a release and got an error: "App Installer failed to install package dependencies. Ask the developer for package. " why?
@jfversluis
@jfversluis 2 жыл бұрын
Not sure, hard to say without debugging and logs unfortunately.
@ChatGPTtut
@ChatGPTtut 2 жыл бұрын
Please Create a video on Blazor MAUI Application CRUD Operations on DB with ef or without EF
@jfversluis
@jfversluis 2 жыл бұрын
That one is coming! Full tutorial for a .NET MAUO Blazor app including CRUD on a local database
@ChatGPTtut
@ChatGPTtut 2 жыл бұрын
@@jfversluis thanks soo much
@kazutsugufukumuro1919
@kazutsugufukumuro1919 2 жыл бұрын
Hello. Very inspiring video. Thank you. I am wondering why you do not have "enable sideload apps mode" error. I do when I copy the package file and run. I want to know if this is something that we cannot avoid, if we do not want to go to the store. Your insight would be much appreciated. Thanks in advance. Kazu
@jfversluis
@jfversluis 2 жыл бұрын
Indeed I didn't have that and because of that I'm also not really sure what you mean 😅 Searching for this I came to this Docs page; seems the default functionality has changed as of a certain Windows 10 version? docs.microsoft.com/windows/application-management/sideload-apps-in-windows-10
@kazutsugufukumuro1919
@kazutsugufukumuro1919 2 жыл бұрын
@@jfversluis Many thanks. This saved me a day!
@jamalfazeli9127
@jamalfazeli9127 2 жыл бұрын
How to install MAUI app on windows 7? ( I got this error when I wanted to install it. "0x80070490 - Unable to open package." Is there any way to run that?
@jfversluis
@jfversluis 2 жыл бұрын
.NET MAUI apps on windows are only supported from Windows 10 and up
@saileshpandey3177
@saileshpandey3177 2 жыл бұрын
Nice tutorial I have been following ur videos on .NET MAUI and kind of contemplating to try it for my app development but somehow cannot commit. Do you recommend it as it is still in preview?
@jfversluis
@jfversluis 2 жыл бұрын
Thanks Sailesh! It all depends on what you want to do. If you want to start looking at it now, then do it! If you really need to start learning from scratch maybe Xamarin.Forms is better as it's more stable and the tooling is better. Everything you will learn about Xamarin.Forms is applicable to .NET MAUI as well
@saileshpandey3177
@saileshpandey3177 2 жыл бұрын
@@jfversluis Thanks for your advice.
@adrianllamido759
@adrianllamido759 Жыл бұрын
Hi Gerald, I'm trying create and sideload publish my .NET Maui windows app msix to my own windows server(through hyper-v) for testing if "auto-update" works. I spent days trying to follow the Microsoft docs but I can't seem to figure it out. Reading the rest of the comments, this seems to be the same as @GiovanniGambino's concern. Can you please make a video to teach us how to do this, please??
@jfversluis
@jfversluis Жыл бұрын
I think there are currently issues with msix on Windows Server, not just for .NET MAUI, but in general. I think it was never intended to run on there, but it’s being looked into. I think. Try looking for an issue in the .NET MAUI repo for all the info
@parko1965
@parko1965 Жыл бұрын
Same problem here, Maui App doesn't update. Followed the docs and still no success. My WinUI version works fine.
@redrevyol
@redrevyol 2 жыл бұрын
I'm having issues using a certificate issued from a trusted source. I converted a .key and a .crt to .pfx using openssl then selected that file from 'Package.appxmanifest' but got an error "The manifest Designer could not import the certificate." I have that cert installed in Personal, Trusted Root Certification Authorities, and Trusted People.
@jfversluis
@jfversluis 2 жыл бұрын
Hm I haven’t seen that so don’t know, sorry!
@redrevyol
@redrevyol 2 жыл бұрын
There is no way to use a certificate by a trusted source?
@jfversluis
@jfversluis 2 жыл бұрын
Oh you definitely can, it might work slightly different and I don’t know how
@purplepanther4153
@purplepanther4153 2 жыл бұрын
Thanks GV. Its complicated. Could a customer or client of mine could install from link or downlaod from a some sort of portal.
@jfversluis
@jfversluis 2 жыл бұрын
Sure, put the msix and certificate somewhere to download and they can :) we’re working on also enabling en “unpackaged” scenario where you can just use all the dlls and exe
@purplepanther4153
@purplepanther4153 2 жыл бұрын
@@jfversluis Sounds great thank you.
@cyrusmooi8125
@cyrusmooi8125 2 жыл бұрын
Great Content but how about hosting/publish dotNet maui Blazor Web application in iis. Thanks
@jfversluis
@jfversluis 2 жыл бұрын
thanks! You can’t :) you either run it in a .NET MAUI app or you have a separate project that runs on the web. We currently don’t have a way to go to the web directly. Personally I don’t like that. I see much more in the approach of making reusable components and share those
@kevinfurst8163
@kevinfurst8163 2 жыл бұрын
Will there be no easy way to publish/share the app for Windows like for example with a WPF app? Can you create a single executable file for sharing?
@jfversluis
@jfversluis 2 жыл бұрын
There probably will in the future, but might not be there for GA
@kevinfurst8163
@kevinfurst8163 2 жыл бұрын
@@jfversluis thats a pity.. lets say Im developing an app and I want to share previews with my collegues and partners, is there no easy way to do that?
@jfversluis
@jfversluis 2 жыл бұрын
Sure, zip the build artifacts :)
@kevinfurst8163
@kevinfurst8163 2 жыл бұрын
@@jfversluis alright, thanks
@markgamache6377
@markgamache6377 2 жыл бұрын
@@jfversluis I don't think this works. It doesn't work for me at least on my dev machine.
@kamranattari2692
@kamranattari2692 Жыл бұрын
@Gerald I published .NET MAUI Windows MSIX to sideload that is signed with a valid certificate. When I click .msix file, nothing happened because msix extension was not known on windows 10 by default. It seems that I have to install App Installer from Microsoft Store to recognise msix extension. After installing App Installer, I clicked on .msix file it showed me installer window, when I clicked on Install button it showed me following error: App installation failed with error message: Access is denied. (0x80070005). Why am I getting this error? Then I open power shell without elevated admin rights and run Install.ps1 script it showed me Add-AppxPackage : Deployment failed with HRESULT: 0x80070005, Access is denied. error. After that I run power shell with elevated admin rights, and run Install.ps1, then it installed my package. So it is installing sideload package only from powershell with admin rights. How can we make it installable by double clicking misx file without admin rights?
@jfversluis
@jfversluis Жыл бұрын
I think that’s very dependent on the machine configuration. My Windows 10 installation recognized the msix and installed without any issue. Look inside the PowerShell script and see what it does, you should be able to repeat that or get some hint on what needs to be set the right way
@RubenHeerenDev
@RubenHeerenDev 2 жыл бұрын
Hey Gerald, Thanks for the guide. I followed everything exactly and it works on my development pc. My question is for the sideloading route. I put the msix on an USB to try it on different PCs and when I install it from there (from the USB) on my development pc it works. The app launches. But when I install it on a different PC (after setting up the certificate, all from the USB) the install works, I see the app installed. Then, when I try to start the app it shows the little loading spinner for 1-3 seconds and... nothing. Tried this on 2 different PCs, one running Windows 10 and another running Windows 11 stable. My dev PC is on the Windows 11 preview channel. They have the .NET 6.0.2 SDK installed, but not Visual Studio. Only my dev PC has Visual Studio installed. Do you have any ideas how to fix this? Thanks in advance. - Ruben
@jfversluis
@jfversluis 2 жыл бұрын
Strange, I tried that and it seems to work for me. Is this a regular .NET MAUI app or a Blazor one? You could check the event log to see if that gives you some information. My guess is it will give you some missing dll message
@RubenHeerenDev
@RubenHeerenDev 2 жыл бұрын
@@jfversluis it's a Blazor one. You mean the Windows Event Viewer app right? And then in the Windows Logs -> Application? Thanks for the quick reply.
@jfversluis
@jfversluis 2 жыл бұрын
@@RubenHeerenDev I see past-me did also discover .NET MAUI Blazor isn't working yet like that: github.com/dotnet/maui/issues/4329 For Event Log, basically search for it in your Start Menu, it's pretty straight-forward. It's logging for everything in Windows. I don't have a reference handy. You should be able to find a screen with loads of logging messages. If you then run your app a new record will pop up with some error details. But based of this I'm fairly sure that this is the case.
@RubenHeerenDev
@RubenHeerenDev 2 жыл бұрын
@@jfversluis Ah that explains it! I will try it as a WPF Blazor app then. Thanks for the help!
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
@@jfversluis I am facing the same issue, Maui Windows app working but Maui Blazor windows app is crashing , I checked in Event viewer and found faulting nodule name kernelbase.dll
@josedonizeteoliveirajunior1744
@josedonizeteoliveirajunior1744 Жыл бұрын
Hi Gerald! Did you leave the link with the codes? Sorry if it's here and I didn't find it...
@jfversluis
@jfversluis Жыл бұрын
Looks like I forgot to add it here, sorry! I think this is the one github.com/jfversluis/MauiPublishingSampleApp
@nichojo89
@nichojo89 2 жыл бұрын
Is the MSIX file the same binary used for Windows mobile and desktop?
@jfversluis
@jfversluis 2 жыл бұрын
And HoloLens and Xbox, yes! :)
@nichojo89
@nichojo89 2 жыл бұрын
Oh cool, I forget about those platforms. Your giving me ideas 💡
@danis3536
@danis3536 2 жыл бұрын
Is there possible to create executable without signing ?
@jfversluis
@jfversluis 2 жыл бұрын
I think that is referred to as unpackaged publishing. I think there is still a bug in there but should be possible by GA
@cranecoding3489
@cranecoding3489 2 жыл бұрын
Please do a tutorial for UWP signing and distribution to Microsoft store
@jfversluis
@jfversluis 2 жыл бұрын
Should be the exact same. Or even easier because you can right-click and Publish straight from Visual Studio
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
The whole steps for sideloading will not work for MAUI BLAZOR Windows apps, am I correct??
@jfversluis
@jfversluis 2 жыл бұрын
It works for me so it should be able to do
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
@@jfversluis Yeah, it worked when I installed latest MSVC. Thanks 🙂
@DanielAncines
@DanielAncines Жыл бұрын
Hi Gerald, in your opinion, what is the best certificate authority to Sideload apps? Regards from Brazil.
@jfversluis
@jfversluis Жыл бұрын
I don’t think it will make much of a difference to be honest. Are Let’s Encrypt certificates trusted by default these days? Then you might even be able to do it for free
@DanielAncines
@DanielAncines Жыл бұрын
@@jfversluis thanks Gerald!
@DanielAncines
@DanielAncines Жыл бұрын
@@jfversluis I believed that Let's Encrypt was for Domains and I'm right, but thank you again!
@jfversluis
@jfversluis Жыл бұрын
@@DanielAncines Yeah they don't seem to have anything for that. Too bad!
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
Hey Gerald , can you suggest me another option to excecute msbuild command on non dev machine, so that without Visual studio I can execute the MSbuild command for my project and so that app would become deployable on (MAUI blazor windows app) on non dev machine when MSIX installs the app.
@jfversluis
@jfversluis 2 жыл бұрын
I'm sorry, I'm not sure what you mean. You shouldn't execute msbuild on a non-dev machine. You should create the msix on a dev machine and you should be able to distribute that.
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
@@jfversluisI tried to do that but maui blazor app got crashed after MSIX installs and launches the app. I am getting faulty Kernelbase.dll error in Event viewer log. I need to do sideloading.
@jfversluis
@jfversluis 2 жыл бұрын
I think I already mentioned that is a known bug, we’re working on it
@Swarajcookingnfun
@Swarajcookingnfun 2 жыл бұрын
@@jfversluis yeah that's why I am finding the other way. It's very urgent to implement and deploy using sideloading. So I am searching how we can do it if it's a bug.
@jfversluis
@jfversluis 2 жыл бұрын
@@Swarajcookingnfun It's still in preview so things like these are to be expected. I understand it's urgent to you, but there is not much there can be done right now besides just zipping your build folder and send that
@techw3608
@techw3608 Жыл бұрын
Where i can find publish command you used
@jfversluis
@jfversluis Жыл бұрын
Find the whole process also here: learn.microsoft.com/dotnet/maui/windows/deployment/overview?view=net-maui-7.0
@coding_ideas
@coding_ideas 8 ай бұрын
Can I also create an EXE or MSI installer in .NET MAUI?
@jfversluis
@jfversluis 8 ай бұрын
Yes on both! Each of those should be handled here: learn.microsoft.com/dotnet/maui/windows/deployment/overview
@amijk2956
@amijk2956 2 жыл бұрын
Password and ProtectTo cannot both be absent...m getting this error
@jfversluis
@jfversluis 2 жыл бұрын
Haven't had that error... Sorry!
@bikashghosh245
@bikashghosh245 2 жыл бұрын
I am getting below error while executing msbuild command: error NU1201: Project xxxxx is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Project xxxxx supports: net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) Any help would be appreciated.
@jfversluis
@jfversluis 2 жыл бұрын
What is the exact command you specified? Looks like it’s trying to build Android as well
@bikashghosh245
@bikashghosh245 2 жыл бұрын
@@jfversluis This is the exact command: msbuild xxxxxx.csproj /restore /t:Publish /p:TargetFramework=net6.0-windows10.0.19041 /p:configuration=release /p:GenerateAppxPackageOnBuild=true /p:AppxPackageSigningEnabled=true /p:PackageCertificateThumbprint="...." We have couple of ClassLibrary project targeting .Net 6 added to the same solution.
@jfversluis
@jfversluis 2 жыл бұрын
Hm weird. Will be tough offering any help without knowing all the details. Make sure that no Android stuff is somehow referenced or loaded when building for Windows
@bikashghosh245
@bikashghosh245 2 жыл бұрын
@@jfversluis It's not throwing error only for Android , it is throwing error for iOS & macCatalyst too as below: error NU1201: Project xxxxx is not compatible with net6.0-ios15.2 (.NETCoreApp,Version=v6.0). Project xxxxx supports: net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) Seems it is trying to compile all the platform and I am using VS 2022 preview 17.2
@jfversluis
@jfversluis 2 жыл бұрын
I’m guessing xxxxx is one of the libraries you’re referencing?
@roulettetrackerpro
@roulettetrackerpro 9 ай бұрын
How can i create an account? It's impossible.
@jfversluis
@jfversluis 9 ай бұрын
Please see if there is any support on that website. Don’t know about account creation sorry!
@rjbraasch
@rjbraasch 2 жыл бұрын
Hi Gerald, your video is extremely usefull. Thanks Sorry to bother but I hope you can help. I've just experiences a small problem at the point where I'm to submit my app to the Microsoft Store... It 's the current required use of [] in the Package.appxmanifest. The app does not compile without that setting, but when submitting it to the store, the app appears to get blocked. Here is the comment... [We detected the use of one or more restricted capabilities in your Package.appxmanifest file. You must request approval to use restricted capabilities by providing more information below. Please include as much detail as possible] So, I've tried to explain, blaming it on the pre-release state of .Net Maui, but it appears not to help . Its been two days now and I'm still waiting for some feedback of sorts. Would you maybe know how to get past this problem? Thanks and regards
@veezel2035
@veezel2035 Жыл бұрын
Hi, did you get any answer?, i have the same problem at the moment
@djohnnie
@djohnnie Жыл бұрын
I'm also interested in some help regarding this topic since I'm struggling with the same issue...
@jfversluis
@jfversluis Жыл бұрын
Is this actually preventing you from publishing? As far as I know this is a note in the portal because of the runFullTrust capability. From what I could tell you could just get past this and publish without any issues.
@djohnnie
@djohnnie Жыл бұрын
I did have to manually explain why I needed full trust, but eventually they accepted and published my app. Thank you!
@jfversluis
@jfversluis Жыл бұрын
I’ll double check to see why we actually need it, but glad to see you’re unblocked!
@metacapitalism5113
@metacapitalism5113 Жыл бұрын
Getting: ConvertTo-SecureString: A positional parameter cannot be found that accepts argument 'Export-PfxCertificate'. error. Tried above as one PS command and got error. Works as two separate commands. Note, when entered as two separate commands it works (Note quotation strings too). 1. $password = ConvertTo-SecureString "P@ssW0rD!" -AsPlainText -Force 2. Export-PfxCertificate -cert "Cert:\CurrentUser\My\" -FilePath certificate.pfx -Password $password Failed on attempt to use msbuild command from PowerShell 7 command prompt with Build FAILED "C:\Archive\Projects\UBViews_2023\UBViews\UBViews.Maui\UBViews.Maui.csproj" (Publish target) (1:10) -> "C:\Archive\Projects\UBViws_2023\UBViews\UBViews.QueryEngine\UBViews.LexParser.fsproj" (default target) (2:6) -> (ResolvePackageAssets target) -> C:\Program Files\dotnet\sdk\7.0.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): er ror NETSDK1005: Assets file 'C:\Archive\Projects\UBViews_2023\UBViews\UBViews.QueryEngine\obj\project.assets.json' doesn't ha ve a target for 'net7.0'. Ensure that restore has run and that you have included 'net7.0' in the TargetFrameworks for your pr oject. [C:\Archive\Projects\UBViews_2023\UBViews\UBViews.QueryEngine\UBViews.LexParser.fsproj] 0 Warning(s) 1 Error(s) This Maui App uses a F# library that provides a Lexer / Parser for a custom query langauge. When I use the Publish funcationality from UI was able to publish and load onto another machine by putting the cert in the proper store. So, I was able to do this sideloading publishing process done through the UI using the Publish menu but so far no luck using msbuild due to F# library project issue which I assume is a setting somewhere. Good news is when I use the UI right-click Publish functionality I don't see this error and the Install files are created in the directory and able to be installed on another machine.
@nqaiser
@nqaiser 2 жыл бұрын
I was not succesful in running the MSBuild, It shows a strange error that parameters are not valid: Microsoft.Build.Msix.Packaging.targets(341,5): error MSB60 11: Invalid parameters passed to the Microsoft.Build.Msix.Symbols.WinAppSdkCheckFastlinkPdb task. EDIT: Actually this error us meaningless, deep in the x64 folder I did find the MSIX file which I could use to submit app to store and successfully download the app and run it.
@jfversluis
@jfversluis 2 жыл бұрын
Ah yeah I think you need to install the Windows Development workload for that in the Visual Studio installer
@nqaiser
@nqaiser 2 жыл бұрын
@@jfversluis I installed the Windows UWP Development kit from Visual Studio Installer but still it did not work.
Release Your .NET MAUI iOS App to the Apple App Store
27:23
Gerald Versluis
Рет қаралды 35 М.
Azure Tutorial for Beginners | 50 Services in 50 Minutes | Cloud Computing for Beginners
44:35
in28minutes - Get Cloud Certified
Рет қаралды 44 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 44 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 85 МЛН
Create & Publish MSIX Installer for Flutter Windows App to Microsoft Store
26:00
Getting Started with .NET MAUI and SignalR: Real-Time Chat App
20:13
Gerald Versluis
Рет қаралды 26 М.
Is There Hope For .NET MAUI?
7:10
SingletonSean
Рет қаралды 26 М.
MVVM Source Generators: Never Write MVVM Boilerplate Code Again!
19:25
James Montemagno
Рет қаралды 75 М.
Why Windows Phone Failed
10:32
Owen Cook
Рет қаралды 775 М.
Setup Your .NET MAUI Dev Environment - .NET MAUI Tutorial Step-By-Step
29:09
Publish WPF app to ms Store: set up
7:15
Visualcoach
Рет қаралды 7 М.
What’s New in .NET MAUI | .NET Conf 2023
40:24
dotnet
Рет қаралды 19 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 139 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 2 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 167 М.
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 2,3 МЛН