title | description | ms.date | ms.localizationpriority |
---|---|---|---|
Validate an Office Add-in's manifest |
Learn how to validate the manifest of an Office Add-in. |
04/12/2024 |
medium |
You should validate your add-in's manifest file to ensure that it's correct and complete. Validation can also identify issues that are causing the error "Your add-in manifest is not valid" when you attempt to sideload your add-in. This article describes multiple ways to validate the manifest file. Except as specified otherwise, they work for both the unified manifest for Microsoft 365 and the add-in only manifest.
Note
For details about using runtime logging to troubleshoot issues with your add-in's manifest, see Debug your add-in with runtime logging.
If you used the Teams Toolkit or Yeoman generator for Office Add-ins to create your add-in, you can validate your project's manifest file with the following command in the root directory of your project.
npm run validate
[!INCLUDE validate also runs Microsoft 365 and Copilot store validation]
If you're having trouble with that command, try the following (replacing MANIFEST_FILE
with the name of the manifest file).
npx office-addin-manifest validate -p MANIFEST_FILE
If you didn't use the Teams Toolkit or Yeoman generator for Office Add-ins to create your add-in, you can validate the manifest by using office-addin-manifest.
-
Install Node.js.
-
Open a command prompt and install the validator with the following command.
npm install -g office-addin-manifest
-
Run the following command in the folder of your project that contains the manifest file (replacing
MANIFEST_FILE
with the name of the manifest file).office-addin-manifest validate MANIFEST_FILE
[!NOTE] If this command isn't working, run the following command instead to force the use of the latest version of the office-addin-manifest tool (replacing
MANIFEST_FILE
with the name of the manifest file).npx office-addin-manifest validate MANIFEST_FILE
If you're working in Teams Toolkit and using the unified manifest, you can use the toolkit's validation options. For instructions, see Validate application.
- Office Add-ins manifest
- Clear the Office cache
- Debug your add-in with runtime logging
- Sideload Office Add-ins for testing
- Debug add-ins using developer tools for Internet Explorer
- Debug add-ins using developer tools for Edge Legacy
- Debug add-ins using developer tools in Microsoft Edge (Chromium-based)