Sep 08 2016 12:07 PM
I have an existing project built as a farm solution with 2 projects. I want to start switching into the new techniques of doing it.
I want to deploy a master page and set is as the current site’s master page. I saw the examples on PnP but they are from 2014 and related to creating sharepoint apps. Is it still the valid solution? Does that mean I have to add an extra project in my solution just for the deployments? Is there a newer way similar to feature receivers which is fast?
Sep 08 2016 12:47 PM
Sep 08 2016 01:38 PM
You can deploy/set master page using PnP PowerShell cmdlets. They work across on prem and O365. See https://github.com/OfficeDev/PnP-PowerShell
Sep 08 2016 01:57 PM
Thank you Juan. So the console application will be using C# CSOM?
Sep 08 2016 01:59 PM
Thank you Sreeni, and what if I want to take this code and deploy it for the client. Do I need to run the scripts in powershell first?
For example, we will end up with 3 wsp files to deploy for the client. I want to start using the new techniques. I should in this case have 1 powershell script to deploy the wsps, and deploy the master page?
Sep 08 2016 02:03 PM
Sep 08 2016 02:46 PM
and to do the deployment in product, I package the console application and take it to the production server? How do people handle these cases?
Sep 08 2016 02:53 PM
Sep 08 2016 03:08 PM
Thanks Scott, do you have examples for that?
Sep 08 2016 03:11 PM
I can certainly send you some over.
Sep 08 2016 08:45 PM
Yes please Scott. That would be great.
Sep 09 2016 03:01 AM