2017-12-27 24 views
2

私は検証を3回提出しました...しかし、すべて失敗しました...検証をパスするためにこのマニフェストXMLファイルを改善するにはどうすればよいですか?その理由は、「VersionOverrides要素に問題があるようです。

アドインプロジェクトという単語を作成したときに、マニフェスト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 

私は本当にそれで混乱....

私は、テストの詳細ファイルに記載されているすべてのページを読んでいました。しかし、私はまだポイントを得ることはありません。

私は次の作業を完全に失っています。


  • 更新1:

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. 
------------------------------------- 
  • アップデート2:

私はgithubの例を発見し、私は私のマニフェスト(residDesktopFuncUrlなし)....

Word manifest sample in github

答えて

0

あなたと何の違いを見ていませんあなたのマニフェストにremoteAppUrlがあります(バージョンオーバーライドのセクションで)。これはVisual Studioの開発のショートカットです。あなたはそれを自分のサーバーのURLに置き換える必要があります。マニフェストを送信する前に、Office Add-In Validatorを使用してマニフェストが正しいことを確認することもできます。

+0

remoteAppUrlを「削除」しないでください。アドインのプロダクションドメインに置き換えます。 –

+0

ありがとうございました! 'remoteAppUrl'は問題の一つです。私はそれを私のプロダクションドメインに置き換えました。 Office Add-In Validatorは役に立ちました。私は提出したmanifest.xmlファイルで 'Passed'を取得しました。結果が更新されました。 – Zhili

+0

@Zhiliそれは私が意味していた:)私の答えを今編集! –

0

は最後に、私は私が私のマニフェストから

<Requirements> 
    <Sets DefaultMinVersion="1.1"> 
     <Set Name="IdentityAPI"/> 
    </Sets> 
</Requirements> 

を移動した場合ことがわかりました。

それは働いた。 私はその理由を知らない。

関連する問題