You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/convert-xml-to-json-manifest.md
+12-51Lines changed: 12 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,19 @@
2
2
title: Convert an add-in to use the unified manifest for Microsoft 365
3
3
description: Learn the various methods for converting an add-in with an add-in only manifest to the unified manifest for Microsoft 365 and sideload the add-in.
4
4
ms.topic: how-to
5
-
ms.date: 04/22/2025
5
+
ms.date: 05/08/2025
6
6
ms.localizationpriority: medium
7
7
---
8
8
9
9
# Convert an add-in to use the unified manifest for Microsoft 365
10
10
11
-
To add Teams capabilities to an add-in that uses the add-in only manifest, or to just future proof the add-in, you need to convert it to use the unified manifest for Microsoft 365.
12
-
13
-
> [!NOTE]
14
-
>
15
-
> - Projects created in Visual Studio, as distinct from Visual Studio Code, can't be converted at this time.
16
-
> - If you [created the project with Teams Toolkit](teams-toolkit-overview.md) or with the "unified manifest" option in the [Yeoman generator for Office Add-ins (Yo Office)](yeoman-generator-overview.md), it already uses the unified manifest.
11
+
To add Teams capabilities or a Copilot extension to an add-in that uses the add-in only manifest, or to just future proof the add-in, you need to convert it to use the unified manifest for Microsoft 365.
17
12
18
13
[!INCLUDE [Unified manifest support note for Office applications](../includes/unified-manifest-support-note.md)]
19
14
20
15
There are three basic tasks to converting an add-in project from the add-in only manifest to the unified manifest.
21
16
22
-
- Ensure that your add-in is ready to convert.
17
+
- Ensure that your manifest is ready to convert.
23
18
- Convert the XML-formatted add-in only manifest itself to the JSON format of the unified manifest.
24
19
- Package the new manifest and two icon image files (described later) into a zip file for sideloading or deployment. *Depending on how you sideload the converted add-in, this task may be done for you automatically.*
25
20
@@ -31,7 +26,7 @@ There are three basic tasks to converting an add-in project from the add-in only
31
26
> - Projects created in Visual Studio, as distinct from Visual Studio Code, can't be converted at this time.
32
27
> - If you [created the project with Teams Toolkit](teams-toolkit-overview.md) or with the "unified manifest" option in the [Office Yeoman Generator](yeoman-generator-overview.md), it already uses the unified manifest.
33
28
34
-
## Ensure that your add-in is ready to convert
29
+
## Ensure that your manifest is ready to convert
35
30
36
31
The following sections describe conditions that must be met before you convert the manifest.
37
32
@@ -66,7 +61,7 @@ The following markup is an example.
66
61
67
62
### Reduce the number of add-in commands as needed
68
63
69
-
An add-in that uses the unified manifest may not have more than 20 [add-in commands](../design/add-in-commands.md). If the total number of [**\<Action\>** elements](/javascript/api/manifest/action) in the add-in only manifest is greater than 20, you must redesign the add-in to have no more than 20.
64
+
An add-in that uses the unified manifest may not have more than 20 [add-in commands](../design/add-in-commands.md). If the total number of [**\<Action\>** elements](/javascript/api/manifest/action) in the add-in only manifest is greater than 20, you must redesign the add-in to have no more than 20.
70
65
71
66
### Update the add-in ID, version, domain, and function names in the manifest
72
67
@@ -83,7 +78,7 @@ An add-in that uses the unified manifest may not have more than 20 [add-in comma
83
78
84
79
### Shorten string values as needed
85
80
86
-
Review and change, as needed, the manifest values in light of the following effects of the conversion.
81
+
Review and change, as needed, manifest values in light of the following effects of the conversion.
87
82
88
83
- The first 30 characters of `<DisplayName>` becomes the value of [`"name.short"`](/microsoft-365/extensibility/schema/root-name#short) in the unified manifest.
89
84
- The first 100 characters of `<DisplayName>` becomes the value of [`"name.full"`](/microsoft-365/extensibility/schema/root-name#full) in the unified manifest.
@@ -103,52 +98,15 @@ Resolve any problems before you attempt to convert the project.
103
98
104
99
There are several ways to carry out the remaining tasks, depending on the IDE and other tools you want to use for your project, and on the tool you used to create the project.
105
100
106
-
-[Convert the project with Teams Toolkit](#convert-the-project-with-teams-toolkit)
107
101
-[Convert projects created with the Yeoman generator for Office Add-ins (aka "Yo Office")](#convert-projects-created-with-the-yeoman-generator-for-office-add-ins-aka-yo-office)
108
102
-[Convert NodeJS and npm projects that weren't created with the Yeoman generator for Office Add-ins (Yo Office)](#convert-nodejs-and-npm-projects-that-werent-created-with-the-yeoman-generator-for-office-add-ins-yo-office)
109
103
110
-
### Convert the project with Teams Toolkit
111
-
112
-
The easiest way to convert is to use Teams Toolkit.
113
-
114
-
#### Prerequisites
115
-
116
-
- Install [Visual Studio Code](https://code.visualstudio.com/)
1. The **New Project** dropdown menu opens. The options listed will vary depending on your version of Teams Toolkit. Select **Office Add-in**.
127
-
128
-
:::image type="content" source="../images/teams-toolkit-create-office-add-in.png" alt-text="The options in New Project dropdown menu. One option is called 'Office Add-in'.":::
129
-
130
-
1. The **App Features Using an Office Add-in** dropdown menu opens. The options listed will vary depending on your version of Teams Toolkit. Select **Upgrade an Existing Office Add-in**.
131
-
132
-
:::image type="content" source="../images/teams-toolkit-create-office-import-capability.png" alt-text="The options in the App Features Using an Office Add-in dropdown menu. The 'Upgrade an Existing Office Add-in' option is selected.":::
133
-
134
-
1. In the **Existing add-in project folder** dropdown menu, browse to the root folder of the add-in project.
135
-
1. In the **Select import project manifest file** dropdown menu, browse to the add-in only manifest file, typically named **manifest.xml**.
136
-
1. In the **Workspace folder** dialog, select the folder where you want to put the converted project.
137
-
1. In the **Application name** dialog, give a name to the project (with no spaces). Teams Toolkit creates the project with your source files and scaffolding. It then opens the project *in a second Visual Studio Code window*. Close the original Visual Studio Code window.
138
-
139
-
#### Sideload the add-in in Visual Studio Code
140
-
141
-
You can sideload the add-in using the Teams Toolkit or in a command prompt, bash shell, or terminal. For more information, see:
142
-
143
-
-[Sideload with Teams toolkit](../testing/sideload-add-in-with-unified-manifest.md#sideload-with-the-teams-toolkit)
144
-
-[Sideload with a system prompt, bash shell, or terminal](../testing/sideload-add-in-with-unified-manifest.md#sideload-with-a-system-prompt-bash-shell-or-terminal)
145
-
146
104
> [!NOTE]
147
-
> Add-ins that use the unified manifest can be sideloaded only on Office Version 2304 (Build 16320.20000) or later.
105
+
> Conversion of the manifest is one of the effects of importing the add-in project into Teams Toolkit if you do so using the toolkit's importation feature. For details, see [Import an add-in project to Teams Toolkit](import-teams-toolkit.md)
148
106
149
107
### Convert projects created with the Yeoman generator for Office Add-ins (aka "Yo Office")
150
108
151
-
If the project was created with the Yeoman generator for Office Add-ins and you don't want to use the Teams Toolkit, convert it using the following steps.
109
+
If the project was created with the Yeoman generator for Office Add-ins, convert it using the following steps.
152
110
153
111
1. In the root of the project, open a command prompt or bash shell and run the following command. This converts the manifest and updates the package.json to specify current tooling packages. The new unified manifest is in the root of the project and the old add-in only manifest is in a backup.zip file. For details about this command, see [Office-Addin-Project](https://www.npmjs.com/package/office-addin-project).
154
112
@@ -161,7 +119,7 @@ If the project was created with the Yeoman generator for Office Add-ins and you
161
119
162
120
### Convert NodeJS and npm projects that weren't created with the Yeoman generator for Office Add-ins (Yo Office)
163
121
164
-
If you don't want to use the Teams Toolkit and your project wasn't created with Yo Office, use the office-addin-manifest-converter tool.
122
+
If your project wasn't created with Yo Office, use the office-addin-manifest-converter tool.
165
123
166
124
In the root of the project, open a command prompt or bash shell and run the following command. This command puts the unified manifest in a subfolder with the same name as the filename stem of the original add-in only manifest. For example, if the manifest is named **MyManifest.xml**, the unified manifest is created at **.\MyManifest\MyManifest.json**. For more details about this command, see [Office-Addin-Manifest-Converter](https://www.npmjs.com/package/office-addin-manifest-converter).
Once you have the unified manifest created, there are two ways to create the zip file and sideload it. For more information, see [Sideload other NodeJS and npm projects](../testing/sideload-add-in-with-unified-manifest.md#sideload-other-nodejs-and-npm-projects).
173
131
132
+
> [!NOTE]
133
+
> If the original add-in only manifest used any **\<Override\>** elements to localize strings in the manifest, then the conversion process produces JSON string files for each localized language. These files must also be included in the zip file, and they must be at the relative path indicated in the [`"localizationInfo.additionalLanguages.file"`](/microsoft-365/extensibility/schema/root-localization-info-additional-languages#file) property.
134
+
174
135
## Next steps
175
136
176
137
Consider whether to maintain both the old and new versions of the add-in. See [Manage both a unified manifest and an add-in only manifest version of your Office Add-in](../concepts/duplicate-legacy-metaos-add-ins.md).
0 commit comments