This question already has an answer here:

I would like to save the site template as .wsp file locally programmatically by CSOM C#.

I know how to save it as a .wsp file from SharePoint online, but does anyone who has any idea how to do the process programmatically? I prefer using CSOM C#.


marked as duplicate by Aakash Maurya, Gaurravs, Dikesh Gandhi, Robert Lindgren, Mohamed El-Qassas MVP Jul 31 '17 at 10:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Its not possible to achive this using CSOM C#.

Its only available with SPWeb.SaveAsTemplate (SSOM).

And there is no possible available method in CSOM for this.

For more information you can check this answer.

Not the answer you're looking for? Browse other questions tagged or ask your own question.