question

01195804 avatar image
0 Votes"
01195804 asked 01195804 commented

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

Hi,
I publish the MAUI project using this link: https://docs.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-serverdotnet-maui
· 11
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In event view I got this error:
No applicable cross-architecture framework was found for package AutomationClient_1.1.10.0_x64_bwz0vybr94zxt. This package
depends on framework "Microsoft.WindowsAppRuntime.1.0" published by "CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US" with minimum version 3.469.1654.0. The frameworks with name "Microsoft.WindowsAppRuntime.1.0"
currently installed are: {Microsoft.WindowsAppRuntime.1.0_3.469.1654.0_x64
_8wekyb3d8bbwe}
What should I do?

0 Votes 0 ·

Did you get some errors that you install your application in the win Server? If so, please share it.

0 Votes 0 ·

The symbol is blank see picture:
201267-image.png


0 Votes 0 ·
image.png (19.0 KiB)

Based on your screenshot, you cannot open msix file in the window server 2012 R2.

I search msix supported-platforms like following thread, it support on following versions of Windows:

Windows 10, version 1709, and later.
Windows Server 2019 LTSC and later.
Windows Enterprise 2019 LTSC and later.


https://docs.microsoft.com/en-us/windows/msix/supported-platforms

0 Votes 0 ·
Show more comments

May I ask the version of windows SDK on your Window server 2012 R2 and win10?

0 Votes 0 ·
01195804 avatar image 01195804 JunjieZhu-MSFT ·

I used this link: https://stackoverflow.com/questions/2665755/how-to-get-installed-windows-sdk-version
"Look under Control Panel / Uninstall a program. "Windows Software Development Kit - Windows X.X.X.X" (where X.X.X.X is the version). It will be listed amongst all the other software you have installed on your machin"
Window 10 - Window Software Development Kit- Window 10.019041.685
Window Server-Not Found maybe with other name ?

0 Votes 0 ·

Can you please answer ?

0 Votes 0 ·
Show more comments

1 Answer

RobCaplan avatar image
0 Votes"
RobCaplan answered 01195804 commented

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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Wait for an answer for server 2019 -:)

0 Votes 0 ·