Skip to content

Commit

Permalink
Merge pull request #23 from OfficeDev/shaozhu/cfsample2-manifest
Browse files Browse the repository at this point in the history
Add runtime element in manifest
  • Loading branch information
shaofengzhu authored Aug 17, 2019
2 parents 74b9e86 + 764dd22 commit dc71b0c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions addins/cfsample2/c5a33478-ba81-414d-ad52-804f5da8facf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Id>c5a33478-ba81-414d-ad52-804f5da8facf</Id>

<!--Version. Updates from the store only get triggered if there is a version change. -->
<Version>1.0.0.0</Version>
<Version>1.0.3.0</Version>
<ProviderName>OEP Dev Team</ProviderName>
<DefaultLocale>en-US</DefaultLocale>

Expand Down Expand Up @@ -45,6 +45,10 @@
<!-- Excel host is Workbook, Word host is Document, and PowerPoint host is Presentation. -->
<!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. -->
<Host xsi:type="Workbook">
<Runtimes>
<Runtime resid="OEP.SharedRuntime.Url" lifetime="long" />
</Runtimes>

<AllFormFactors>
<ExtensionPoint xsi:type="CustomFunctions">
<Script>
Expand All @@ -53,7 +57,7 @@
<SourceLocation resid="OEP.CustomFunctions.Script" />
</Script>
<Page>
<SourceLocation resid="OEP.CustomFunctions.Page"/>
<SourceLocation resid="OEP.SharedRuntime.Url"/>
</Page>
<Metadata>
<SourceLocation resid="OEP.CustomFunctions.Json" />
Expand All @@ -78,7 +82,7 @@

<!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
Think of the FunctionFile as the code behind ExecuteFunction. -->
<FunctionFile resid="OEP.DesktopFunctionFile.Url" />
<FunctionFile resid="OEP.SharedRuntime.Url" />

<!-- PrimaryCommandSurface is the main Office Ribbon. -->
<ExtensionPoint xsi:type="PrimaryCommandSurface">
Expand Down Expand Up @@ -133,7 +137,7 @@
<!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
<Action xsi:type="ShowTaskpane">
<!-- Provide a url resource id for the location that will be displayed on the task pane. -->
<SourceLocation resid="OEP.Taskpane.Url" />
<SourceLocation resid="OEP.SharedRuntime.Url" />
</Action>
</Control>
</Group>
Expand All @@ -152,9 +156,7 @@
</bt:Images>
<bt:Urls>
<bt:Url id="OEP.CustomFunctions.Script" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/custom-functions.js" />
<bt:Url id="OEP.CustomFunctions.Page" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/sharedapp.html" />
<bt:Url id="OEP.DesktopFunctionFile.Url" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/sharedapp.html" />
<bt:Url id="OEP.Taskpane.Url" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/sharedapp.html" />
<bt:Url id="OEP.SharedRuntime.Url" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/sharedapp.html" />
<bt:Url id="OEP.CustomFunctions.Json" DefaultValue="https://officedev.github.io/custom-functions/addins/cfsample2/custom-functions.json" />
<bt:Url id="OEP.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
</bt:Urls>
Expand Down

0 comments on commit dc71b0c

Please sign in to comment.