作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我提交了 3 次验证......但都失败了......
我的manifest xml文件是我在创建word插件项目时用VS2017生成的。
它在我的系统中运行良好。
Windows 10 64 bits
Word 2016 with the lastest update
Word online with chrome
VS2017
我的xml文件,请看下面:
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
xsi:type="TaskPaneApp">
<Id>xxxxxxxx-xxxx-xxxx-xxxx-e53e4d4aaxxx</Id>
<Version>1.0.0.0</Version>
<ProviderName>服务有限公司</ProviderName>
<DefaultLocale>zh-CN</DefaultLocale>
<DisplayName DefaultValue="应用名称" />
<Description DefaultValue="描述" />
<IconUrl DefaultValue="https://word.xxxxxxx.cn/Images/icon32x32.png" />
<SupportUrl DefaultValue="https://xxxxxxx.cn" />
<AppDomains>
<AppDomain>https://www.xxxxxxx.com</AppDomain>
<AppDomain>https://xxxxxxx.cn</AppDomain>
<AppDomain>https://www.xxxxxxx.com</AppDomain>
<AppDomain>http://xxxxxxx:111</AppDomain>
<AppDomain>https://word.xxxxxxx.cn</AppDomain>
<AppDomain>https://xxxxxxx.xxxxxxx.cn</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Document" />
</Hosts>
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="IdentityAPI"/>
</Sets>
</Requirements>
<DefaultSettings>
<SourceLocation DefaultValue="https://word.xxxxxxx.cn" />
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Document">
<DesktopFormFactor>
<GetStarted>
<Title resid="Contoso.GetStarted.Title"/>
<Description resid="Contoso.GetStarted.Description"/>
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
</GetStarted>
<FunctionFile resid="Contoso.DesktopFunctionFile.Url" />
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<OfficeTab id="TabHome">
<Group id="Contoso.Group1">
<Label resid="Contoso.Group1Label" />
<Icon>
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
</Icon>
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
<Label resid="Contoso.TaskpaneButton.Label" />
<Supertip>
<Title resid="Contoso.TaskpaneButton.Label" />
<Description resid="Contoso.TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="Contoso.Taskpane.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://xxxxxxx.xxxxxxx.cn/Images/icon16x16.png" />
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://xxxxxxx.xxxxxxx.cn/Images/icon32x32.png" />
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://xxxxxxx.xxxxxxx.cn/Images/icon80x80.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="Contoso.DesktopFunctionFile.Url" DefaultValue="~remoteAppUrl/Functions/FunctionFile.html" />
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://xxxxxxx.xxxxxxx.cn/index" />
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="名称" />
<bt:String id="Contoso.Group1Label" DefaultValue="点击进入" />
<bt:String id="Contoso.GetStarted.Title" DefaultValue="名称" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="文字" />
<bt:String id="Contoso.GetStarted.Description" DefaultValue=" " />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
下面是一些测试结果:
4.12.1 Your app or add-in must be fully functional
with the supported operating systems, browsers, and
devices for Office 2013, Office 2016, SharePoint
2013, and Office 365.
The add-in is not available to be inserted in the
Word 2016 Client on Windows 10 with Internet
Explorer 11 and in the Word Client on Mac when
using the submitted manifest, however if the
VersionOverrides element is removed, the add-in
becomes insertable without add-in commands.
This suggests the issue may be in the version
overrides element. For more information on version
overrides and add-in commands, please see:
https://dev.office.com/reference/addins/manifest/versionoverrides
https://dev.office.com/docs/addins/develop/define-add-in-commands
Please see 7.9 below.
7.9 Your add-in’s packages must be correctly
formatted and conform to the current manifest
schema. For Office Add-ins, this is manifest schema
version 1.1.
Your add-in manifest does not conform to the
schema.
There appears to be an issue in the
VersionOverrides element.
Some of the URLs mentioned in your add-in
manifest do not exist. Please ensure all URLs
mentioned in your add-in manifest exist, including
any mentioned in the description of the add-in.
~remoteAppUrl/Functions/FunctionFile.html
我真的被它搞糊涂了....
我已经阅读了测试详细信息文件中列出的所有页面。但我还是不明白这一点。
请帮忙,我完全不知道下一步该怎么做。
Office 加载项验证器工具。验证此 list 我得到了 Passed
。
Calling validation service. This might take a moment...
-------------------------------------
Validation: Passed
Based on the requirements specified in your manifest, your add-in can run on the following platforms; your add-in will be tested on these platforms when you submit it to the Office Store:
- Word 2016 or later
- Word Online
- Word 2016 for Mac
Important: This analysis is based on the requirements specified in your manifest and does not account for any runtime JavaScript calls within your add-in. For information about which API sets and features are supported on each platform, see Office Add-in host and platform availability. (https://dev.office.com/add-in-availability).
*This does not include mobile apps. You can opt-in to support mobile apps when you submit your add-in.
-------------------------------------
我在 github 中找到了一个示例,我发现它与我的 list 没有区别(没有 residDesktopFuncUrl)....
最佳答案
您的 list 中有 remoteAppUrl
(在 versionoverrides 部分),我认为这是 visual studio 中的开发快捷方式。你必须用你自己的服务器 url 替换它。同样在提交 list 之前,您可以使用 Office Add-In Validator以确保您的 list 是正确的。
关于office-js - 如何改进此 list xml 文件以通过验证?原因是 `There appears to be an issue in the VersionOverrides element.` ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47991440/
我是一名优秀的程序员,十分优秀!