question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish Maui app as exe not work on window 10 - continue

See original GitHub issue

Description

Description Publish Maui app as exe is not working , while it works on server 2019 with some known issues(fonts…).

Steps to Reproduce

  1. Install window 10 on new virtual computer.
  2. Creat a new Maui app.
  3. Publish as exe using this command: dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true /p:PackageCertificateThumbprint="c01ba45666762f3615cf6813aeb4dc4b1919541d" the exe created but when I run it nothing happen.
  4. I installed the first two files. I installed the app according to https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/deploy-unpackaged-apps image How do I installed the last tree files ? Can you please help even if not official ? I need it for our customer not as msix

Link to public reproduction project repository

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Did you find any workaround?

No

Relevant log output

No

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
danies8commented, Nov 20, 2022

I succedded running windowsdesktop-runtime-6.0.7-win-x64.exe and it run the maui .exe

1reaction
LanceMcCarthycommented, Nov 10, 2022

This is ultimately not related to .NET MAUI and is most certainly not a .NET MAUI bug. I recommend opening a discussion on the Windows dev Q&A.

It is a consequence of choosing to build an unpackaged WinUI3 app. You need to ensure the target environment has the necessary runtime. You can find the information in the article you’ve already shared https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/deploy-unpackaged-apps#chain-the-windows-app-sdk-installer-to-your-apps-setup

Here are some relevant Q&A sites:

You might also want to try StackOverflow or the Windows Dev Discord. Just remember to be precise when asking your questions, you’re not asking for help with .NET MAUI… you’re “looking for guidance on deploying an unpackaged WinUI3 app in an environment that does not have the required runtime available.

[edit 1] Added links to the Q&As

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publish Maui app as exe not work on window 10 #10938
Description. Publish Maui app as exe not work. Steps to Reproduce. Install window 10 on new virtual computer. 2.Creat a new Maui app....
Read more >
Publish a .NET MAUI app for Windows
NET MAUI) app for Windows, you can publish the app and its dependencies to a folder for deployment to another system. Publishing a...
Read more >
Build/publish Maui as .exe for windows : r/dotnetMAUI
I believe what you're asking for is called an "unpackaged app," and is not yet supported in .NET MAUI, but it is planned...
Read more >
Publish unpacked MAUI app without redundant dlls
NET MAUI currently only allows publishing an MSIX package. You can't yet publish a Windows executable file for distribution.
Read more >
Welcome to Hell - Windows Publishing with .NET MAUI
This time the build succeeded, and a bigger executable was created in the publish folder. I thought i was done - but no…...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found