0

I have built a .net maui application with blazor using the following command:

dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true /p:DebugType=None /p:EnableCompressionInSingleFile=true

The application runs fine on my development machine (Windows 10)

It also runs fine on another machine i tested after installing Windows app sdk 1.1 from here: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads

However, on a Windows server 2019 machine i am unable to install Windows app sdk 1.1 (it crashes after a few console lines), and the .net maui application will not open.

1 Answers1

2

This scenario is known as unpackaged publishing and is not supported yet. This issue tracks the progress and adds some instructions that you might try to make it work today: https://github.com/dotnet/maui/issues/3166

Gerald Versluis
  • 30,492
  • 6
  • 73
  • 100