我已经提交了3次验证......但是所有这些都失败了......
当我创建单词加载项目时,我的清单xml文件是由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加载项验证程序工具。验证这个清单我得到了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中找到了一个例子,我发现我的清单没有任何区别(没有residDesktopFuncUrl)....
您的清单中有remoteAppUrl
(在版本更改部分中),我相信它是visual studio中的开发快捷方式。您必须将其替换为您自己的服务器URL。在提交清单之前,您可以使用Office Add-In Validator确保清单正确无误。
最后,我发现如果我搬家
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="IdentityAPI"/>
</Sets>
</Requirements>
从我的清单。
然后它奏效了。我不知道原因。