从命令行打包Package from the command line

如果不在 Visual Studio 中开发应用程序,可以使用 .MSIX 命令行工具对应用程序进行打包和签名。If you don't develop your app in Visual Studio, you can use the MSIX command line tools to package and sign your applications.

用途Purpose

本部分链接到有关使用命令行工具手动将应用打包为 .MSIX 的文章。This section links to articles about manually packaging your app as an MSIX using command line tools.

主题Topic 说明Description
正在生成包组件Generating package components 创建包清单并添加基于目标的未着色资产(可选)Create a package manifest and add Target-based unplated assets (optional)
使用 Makeappx.exe 工具创建 .MSIX 包或捆绑包Create an MSIX package or bundle with the MakeAppx.exe tool MakeAppx.exe 创建、加密、解密应用程序包和捆绑包,并从中提取文件。MakeAppx.exe creates, encrypts, decrypts, and extracts files from app packages and bundles.
为包签名创建证书Create a certificate for package signing 使用 PowerShell 工具为应用包签名创建和导出证书。Create and export a certificate for app package signing with PowerShell tools.
使用 SignTool 对应用包进行签名Sign an app package using SignTool 使用带证书的 SignTool 手动对应用包签名。Use SignTool to manually sign an app package with a certificate.

高级主题Advanced topics

本部分包含更多高级主题,用于对大型或复杂应用进行组件化,从而提高打包和安装效率。This section contains more advanced topics for componentizing a large and/or complex app for more efficient packaging and installation.

重要

如果你打算将应用提交到 Microsoft Store,你需要联系 Windows 开发人员支持并获得批准才能使用本部分中的任何高级功能。If you intend to submit your app to the Store, you need to contact Windows developer support and get approval to use any of the advanced features in this section.

主题Topic 说明Description
打包布局的包创建Package creation with the packaging layout 包布局是用于描述应用的包结构的单个文档。The packaging layout is a single document that describes packaging structure of the app. 它指定应用中的捆绑(主要和可选)、捆绑中的包以及包中的文件。It specifies the bundles of an app (primary and optional), the packages in the bundles, and the files in the packages.
资产包简介Introduction to asset packages 资产包是一种用作应用程序公用文件集中存放位置的程序包,可有效消除整个体系结构程序包中的重复文件。Asset packages are a type of package that act as a centralized location for an application’s common files – effectively eliminating the necessity for duplicated files throughout its architecture packages.
用资产包和包折叠进行开发Developing with asset packages and package folding 了解如何使用资产包和包折叠高效组织你的应用。Learn how to efficiently organize your app with asset packages and package folding.
平面绑定应用包Flat bundle app packages 描述如何为应用的包文件创建平面束。Describes how to create a flat bundle for your app’s package files.