MSIX打包Windows应用

363 阅读1分钟

只是记录一下最简单的打包过程,没有进行安装界面等个性化配置.

  1. 在要打包的project的sln下新建msix project

image.png

image.png

  1. 右键msix project下的Dependencies - Add Project Reference,添加被打包的应用

  2. 打开appxmanifest,设置Packaging里的certificate.(选择被系统信任的证书,如果安装的时候提示不信任的话,就在开始菜单 - Manage computer certificates里面把证书加到trusted里)

  3. 右键msix project,选择Publish - Create App Packages - Next - Next,安装包将生成到"Output Location",Architecture选择x86 - Next - Installer location可以填一个本机的共享文件夹路径 - Create image.png

  4. Publish成功之后,在Installer location路径找到appinstaller文件,或者在Output location路径找到msixbundle文件,双击安装.安装之后在Settings - Apps - Installed apps可以看到安装好的应用

image.png

  1. 在开始菜单找到,点击打开就是被打包的应用界面了

image.png