Open Ewan1 opened 7 years ago
PowerShell to the rescue! Got ya covered.
http://www.spjeff.com/2017/11/02/reduce-sppkg-webparts-features-with-powershell/
The below steps will reduce a SPPKG to only select Features and WebParts we want to keep. Every SPPKG file is actually a ZIP with XML manifest and subfolder for each WebPart and Feature. Extracting the SPPKG as ZIP allows us to review the internal content, enumerate all Features, and then select ones to keep in a final compressed ZIP file (SPPKG file).
If you want to upload only a few WebParts from a SPPKG package to Office 365’s App Catalog then check out the video below.
Cheers!
@spjeff When I used the script it created a new sppkg but when I loaded it into my AppCatalog it gives the following error
The package contains the wrong number of relationships for relationship type 'http://schemas.microsoft.com/sharepoint/2012/app/relationships/package-manifest'. Expected: '1'. Actual: '0'.
Any idea what's going wrong?
I am getting the same error .. anyone resolved this? The package contains the wrong number of relationships for relationship type 'http://schemas.microsoft.com/sharepoint/2012/app/relationships/package-manifest'. Expected: '1'. Actual: '0'.
Tremendous effort on these webparts! We have a need to a few specific web parts, but not all 40. Is it possible/easy to separate and load specific web parts vs the entire bundle? thx