Skip to content

Commit 4d44b39

Browse files
committed
Separate manifest and source code for each host
1 parent 075d02e commit 4d44b39

File tree

12 files changed

+498
-109
lines changed

12 files changed

+498
-109
lines changed

manifest.excel.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Workbook"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Workbook">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.onenote.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Notebook"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Notebook">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.powerpoint.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Presentation"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Presentation">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.word.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Document"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Document">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
"build-dev": "webpack --mode development",
1717
"dev-server": "webpack-dev-server --mode development",
1818
"sideload": "echo Please specify which app using 'npm run sideload:app'.",
19-
"sideload:excel": "office-toolbox sideload -m manifest.xml -a excel",
20-
"sideload:powerpoint": "office-toolbox sideload -m manifest.xml -a powerpoint",
21-
"sideload:word": "office-toolbox sideload -m manifest.xml -a word",
19+
"sideload:excel": "office-toolbox sideload -m manifest.excel.xml -a excel",
20+
"sideload:powerpoint": "office-toolbox sideload -m manifest.powerpoint.xml -a powerpoint",
21+
"sideload:word": "office-toolbox sideload -m manifest.word.xml -a word",
2222
"start": "office-addin-debugging start manifest.xml",
2323
"start:desktop": "office-addin-debugging start manifest.xml desktop",
2424
"start:web": "office-addin-debugging start manifest.xml web",
2525
"stop": "office-addin-debugging stop manifest.xml",
2626
"unload": "echo Please specify which app using 'npm run unload:app'.",
27-
"unload:excel": "office-toolbox remove -m manifest.xml -a excel",
28-
"unload:powerpoint": "office-toolbox remove -m manifest.xml -a powerpoint",
29-
"unload:word": "office-toolbox remove -m manifest.xml -a word",
27+
"unload:excel": "office-toolbox remove -m manifest.excel.xml -a excel",
28+
"unload:powerpoint": "office-toolbox remove -m manifest.powerpoint.xml -a powerpoint",
29+
"unload:word": "office-toolbox remove -m manifest.word.xml -a word",
3030
"validate": "office-toolbox validate -m manifest.xml",
3131
"watch": "webpack --mode development --watch"
3232
},

0 commit comments

Comments
 (0)