使用 MSIX 打包工具编辑图标和资产Edit icons and assets using the MSIX Packaging Tool

当使用 MSIX 打包工具时,可在转换过程中修改应用包资产的方式有以下几种:There are several ways you can modify your app package assets during the conversion process while using the MSIX Packaging Tool:

  • 可以在转换过程中修改应用包资产。You can modify your app package assets during the conversion process.
  • 创建包后,可以通过包编辑器修改应用包资产。After your package has been created, you can modify your app package assets via the Package editor.

进行修改时,请参阅图标和资产指南Refer to the guidelines for icon and assets as you make your modifications.

在转换过程中修改资产Modify assets during the conversion process

在 MSIX 打包工具工作流的受监视安装阶段中,MSIX 打包工具将捕获你对应用程序的文件或文件夹进行的任何更改。During the monitored installation phase of the MSIX Packaging Tool workflow, the MSIX Packaging Tool will capture any changes that you make to files or folders for your application. 如果在监视过程中更改资产,这些更改将捕获到最终包中。If you change your assets during the monitoring, those changes will be captured in your final package.

在创建包后修改资产Modify assets after your package has been created

若要在创建 MSIX 包后修改应用包资产,请在包编辑器中打开 MSIX 包,然后打开“包文件”**** 页。To modify your app package assets after you create your MSIX package, open your MSIX package in Package editor, and then open the Package files page. 可以删除现有资产或添加新图标或资产。You can delete existing assets or add new icons or assets.

  • 若要添加新的资产文件,请右键单击资产文件夹,然后选择“添加文件”**** 或“添加文件夹”****。To add a new asset file, right-click the assets folder, and select Add file or Add folder.
  • 若要删除现有资产文件,请右键单击该文件,并选择“删除”****。To delete an existing asset file, right-click the file and select Delete.

若要验证资产更改,请转到“包信息”**** 页,并打开清单文件。To verify your asset changes, go to the Package information page and open your manifest file. 确认 uap:VisualElements 节点中表示了已添加或删除的资产。Confirm that the assets you added or removed are represented in the uap:VisualElements node. 清单引用需要是特定的,但资产文件可以命名为任何所需的名称。The manifest reference needs to be specific, but the asset files can be named whatever you like.