question

OsvathAndy-0683 avatar image
0 Votes"
OsvathAndy-0683 asked JaymeBandeira-9824 commented

Office Add-In Shared Runtime Error Invalid child element 'Runtimes'

I am trying to implement the JavaScript Shared Runtime for an Office.js Excel Add-in, but when I add the <Runtimes> element I get the following error:

The element 'Host' in namespace 'http://schemas.microsoft.com/office/taskpaneappversionoverrides' has invalid child element 'Runtimes' in namespace 'http://schemas.microsoft.com/office/taskpaneappversionoverrides'. List of possible elements expected: 'AllFormFactors, DesktopFormFactor' in namespace 'http://schemas.microsoft.com/office/taskpaneappversionoverrides'.

office-js-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JaymeBandeira-9824 avatar image
1 Vote"
JaymeBandeira-9824 answered JaymeBandeira-9824 commented

I fixed that by adding Runtimes to the local xsd file. In my machine it is located at:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Xml\Schemas\1033\TaskPaneAppVersionOverridesV1_0.xsd

Go to the corresponding schema and search for Runtimes, then add these parts to the local xsd file.
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-owemxml/82e93ec5-de22-42a8-86e3-353c8336aa40

Note that this hasn't been tested with the add-in published to the Microsoft Store.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In addition to the file you listed, I also had to replace Offappmanifest.xsd located here:
[https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-owemxml/00e4ee5d-2eb8-47f2-9008-8beb6ff45189][1]

That resolved my issue.
Thank you.



0 Votes 0 ·

Interesting, I didn't have to change that one for my project. Anyways, I'm glad it worked for you!

Cheers

1 Vote 1 ·