简体   繁体   中英

How To Deploy MSIX In Another PC

I have created a winUi 3 desktop application. I have publish that application using sideloading and it has generated a MSIX package for installation. When I'm installing and running that package in my PC it's working fine but when I installing that package in another pc (my friends pc) it installed but when I'm lunching that application it gives error
在此处输入图像描述

Is that compulsory to have a dotnet to launch MSIX application??

As mentioned by Markus Meyer in his comment, you need dotnet for your application, not MSIX.

Basically you now have two options for your application with MSIX:

  1. Require dotnet to be installed on your target machine(s) as prerequisite
  2. Publish you application as self contained (see https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained )

This previous question may also help: MSIX: How to achieve automatic install of .net 5 required for my application? , especially this link https://techcommunity.microsoft.com/t5/msix/msix-how-to-achieve-automatic-install-of-net-5-required-for-my/mp/2372896/highlight/true#M880 for details from the above discussion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM