0

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:

MSIX Setting

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.

1
  • Try this guy: stackoverflow.com/questions/74271977/… ; Failing that, Try this: Launch your solution in VS Code. Install the C# extension and C# Dev Kit, and then install the MAUI add-in. Once that's all fired up, you can launch your MAUI app. While this is happening, the console output in VS Code is running all of the dotnet commands you'll need. You can get similar information from JetBrains Rider's output console. Commented Feb 18 at 22:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.