Skip to content

Commit 0178b69

Browse files
committed
Small clarification on ClientSideInstance.xml packaging in extension tutorials
1 parent c201881 commit 0178b69

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

docs/spfx/extensions/get-started/serving-your-extension-from-sharepoint.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,30 @@ For this tutorial, we do not need this file as we will be activating solution in
102102

103103
### Ensure that definitions are taken into account within the build pipeline
104104

105-
Open **package-solution.json** from the **config** folder. The **package-solution.json** file defines the package metadata as shown in the following code. To ensure that the **element.xml** file is taken into account while the solution is being packaged, default scaffolding adds needed configuration to define a feature framework feature definition for the solution package. Remove also the entry for **clientsideinstance.xml** under *elementManifests*, as we do not need that for this tutorial.
105+
Open **package-solution.json** from the **config** folder. The **package-solution.json** file defines the package metadata as shown in the following code. To ensure that the **element.xml** file is taken into account while the solution is being packaged, default scaffolding adds needed configuration to define a feature framework feature definition for the solution package. **Remove** also the entry for **clientsideinstance.xml** under *elementManifests*, as we do not need that for this tutorial.
106106

107-
Your **package-slution.json** should look somewhat following after the needed edits, except for the id entries, which will be specific for your solution.
107+
Here's how the `elementManifests` section looked initially
108+
109+
```json
110+
"assets": {
111+
"elementManifests": [
112+
"elements.xml",
113+
"clientsideinstance.xml"
114+
]
115+
}
116+
```
117+
118+
And here's how it looks after needed edit
119+
120+
```json
121+
"assets": {
122+
"elementManifests": [
123+
"elements.xml"
124+
]
125+
}
126+
```
127+
128+
Your **package-solution.json** should look somewhat following after the needed edits, except for the id entries, which will be specific for your solution.
108129

109130
```json
110131
{
@@ -122,8 +143,7 @@ Your **package-slution.json** should look somewhat following after the needed ed
122143
"version": "1.0.0.0",
123144
"assets": {
124145
"elementManifests": [
125-
"elements.xml",
126-
"clientsideinstance.xml"
146+
"elements.xml"
127147
]
128148
}
129149
}

0 commit comments

Comments
 (0)