How can I add multiple requirements sets to the manifest.xml file for an Office add-in?

48 views Asked by At

I have an Office add-in that works for Word, Excel and PowerPoint, but I want it to only be available for Office 2021 onwards (Windows Desktop)

I found that it is possible using Requirement Sets, but when I specify 3, the validator (office- addin-manifest) returns an error message:

Error #1: No Supported Office Products: There are no platforms which fulfil the requirements specified in the manifest. The most common reasons for this failure are issues in the Requirements section. Please review the manifest and try again.

The manifest is not valid.

enter image description here

When I specify only one Requirement set, the file passes validation enter image description here

enter image description here

1

There are 1 answers

3
Eugene Astafiev On

The Office add-ins team is working on supporting multiple hosts in the single add-in manifest. I suppose for that reasons the validation tool is not fully adapted for the validation process of such manifests. Try to post this to https://github.com/OfficeDev/office-js/issues and hopefully that will be supported soon.