侧载和 Office 365 管理中心预览清单文件之间是否有任何差异

Are there any differences between Sideloading and Office 365 admin center preview manifest files

用于旁加载(本地文件共享)的清单文件的内容与 Office 365 管理中心预览之间是否存在任何差异? 我在 SharePoint 上托管了一个完全可用的加载项,目前正在使用文件共享 "Trusted add-ins catalogue" 方法(旁加载)。 我已要求我们的 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>

是的,存在差异。当您从文件共享加载清单时,会跳过一些错误并且清单仍会加载;您可以使用 RuntimeLogging 更深入地了解它。当您将清单加载到加载项目录(顺便说一句,基于 SP,不支持加载项命令)或管理中心预览 (O365) 时,还会执行完整的架构验证,这就是您看到一些错误的原因。根据架构验证您的清单 and/or 使用 RuntimeLogging 查看错误是什么(例如,将 IconUrl 放在 AppDomains 节点之前应该可以工作)。

顺便说一句,您上传的屏幕截图不是 admin center preview,而是基于 SP 的插件目录。如果您打算尝试预览,请确保您的管理员将其上传到正确的位置。