MSIX of MAUII app does not installed on Window server 2012 R2

Dani_S 3,786 Reputation points
2022-05-11T08:30:06.337+00:00

Hi,
I publish the MAUI project using this link: https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/overview
and later install it on my computer window 10 and it works.
But when I tried to install it on window server 2012 R2 is not working.
What do I miss ?
Thanks,,


In this article:https://github.com/microsoft/msix-packaging/issues/273 it said:
Yes, for MSIX core, specify MSIXCore.Server in the manifest and it should deploy on Server.
How is done here is my window manifest in MAUI app.
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="AutomationClient.MAUI.WinUI.app"/>

<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<!-- The combination of below two tags have the following effect:
1) Per-Monitor for >= Windows 10 Anniversary Update
2) System < Windows 10 Anniversary Update
-->
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,248 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,607 questions
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 5,537 Reputation points Microsoft Employee
    2022-05-16T20:04:08.007+00:00

    MAUI doesn't support Server 2012R2 because MAUI for Windows runs on WinUI 3, and WinUI 3 doesn't run on Server 2012R2.

    MSIX does not appear to be related to the actual problem here - from the error message, the issue is that the WinUI cannot be found.

    WinUI 3 is supported on Windows 10 1809 and later, which is the client equivalent of Server 2019.

    Why you can't run on Server 2019 can be discussed in your thread specific to that platform:
    MSIX of MAUI app does not installed on Window server 2019


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.