使用 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.