用于侧载(本地文件共享)和Office 365管理中心预览的清单文件的内容是否有任何差异? 我有一个在SharePoint上托管的完全工作的加载项,我目前正在使用文件共享"受信任的加载项目录"方法(sideloading)。 我已经要求我们的SharePoint代表将加载项加载到Office 365管理中心预览中,但是" Apps for Office"工具响应清单无效。
<?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"
xsi:type="TaskPaneApp">
<Id>C058EB6E-F7CA-4586-832D-AD46F3BD3201</Id>
<Version>1.3</Version>
<ProviderName>Demo</ProviderName>
<DefaultLocale>EN-US</DefaultLocale>
<DisplayName DefaultValue="Rapid Component Add-in"/>
<Description DefaultValue="Demo Rapid Component Add-in service live"/>
<AppDomains>
<AppDomain>https://login.microsoftonline.com</AppDomain>
<AppDomain>https://eadadfs.acompany.com</AppDomain>
</AppDomains>
<IconUrl DefaultValue=
"https://acompanyportal.sharepoint.com/sites/ComponentAssembler/Shared%20Documents/RapidComponentLive/Images/logo.png"/>
<Hosts>
<Host Name="Document"/>
<Host Name="Workbook"/>
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://acompanyportal.sharepoint.com/sites/ComponentAssembler/Shared%20Documents/RapidComponentLive/generated.aspx"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
</OfficeApp>
答案 0 :(得分:1)
是的,存在差异。从文件共享加载清单时,会跳过一些错误,清单仍会加载;您可以使用RuntimeLogging更深入地了解相关信息。当您将清单加载到加载项目录(基于SP的,不支持加载项命令btw)或管理中心预览(O365)时,还会执行完整的模式验证,这就是您看到一些错误的原因。根据模式验证清单和/或使用RuntimeLogging查看错误是什么(例如,在AppDomains节点应该工作之前放置IconUrl)。
BTW,您上传的屏幕截图不是admin center preview,而是基于SP的插件目录。如果您打算尝试预览,请确保您的管理员将其上传到正确的位置。