Launching a .Net 8.0.300 Maui MSIX packaged app from PS/CMD terminal
I am working on a project that is developed utilizing Visual Studio to package and launch the application utilizing MSIX packaging. It is a .NET 8.0.300 Maui/C# application. This property is checked in the project properties:
I am trying to transition to utilizing mainly the terminal to code and launch this application, but you cannot simply launch the application from the .exe because it is packaged and launched in Windows via the MSIX file. The issue I am running into is when I use the Add-AppxPackage cmdlet in PS to install the app, I get this error:
Add-AppxPackage : Deployment failed with HRESULT: 0x800B0109, A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. error 0x800B0109: The root certificate of the signature in the app package or bundle must be trusted.
Somehow when I hit ctrl+F5 in VS, it automatically handles creating, installing, and launching the app with the appropriate signatures, and I do not know how this is done to replicate it via PowerShell. If there is anyway for me to replicate the "run" behavior from visual studio in powershell, this is basically all I need.
Should I keep trying to go fully terminal or is it basically impossible with these constraints? I am not trying to publish the app anywhere, just trying to launch the app so I can see how my code changes appear in the application itself.
Thank you for the help!
I tried creating my own certs via the following links, but this did not work either:
https://learn.microsoft.com/en-us/windows/msix/package/manual-packaging-root
I've spent hours doing this and I don't know what else to do.
dotnetcommands you'll need. You can get similar information from JetBrains Rider's output console.