Question

Trying to build a SharePoint master page in the new Visual Studio 2017 but doesn't seem to have an option to add just a master page.

Any suggestions on where to start?

Was it helpful?

Solution 2

Seems that whilst custom master pages are still viable and will be supported Microsoft do NOT recommend them for SP online / on premises.

Their reasoning behind this is due to continued updated to online which would be lost on custom master pages. You loose out on new rolled out content, cumulative update for security etc...

You can still work around it by using the suggestion above but they just don't recommend it.

They suggest you use JS injection & Custom theme/look & feel. Which is rubbish if you ask me!

OTHER TIPS

You should be aware of

There is no item called Master page in visual studio 2012/ 2013 / 2015 /2017. To create a custom master page using visual studio, you should add a Module

Crete Master Page using VS Steps:

  • Create an empty SharePoint farm solution.
  • Right click on your project > Add > New Item.
  • Add Module from the Add New Item window > Rename it as you like “MasterPages”.

enter image description here

  • Rename the Sample.txt file as MyMasterPage.master.
  • Open the existing SharePoint site in SharePoint Designer 2013.
  • Go to All Files -> _catalog -> master pages.
  • Open the v4.master file. Copy this file content and place in our
  • Do modification as per your requirement in the MyMasterPage.master.

Check detail Steps at Create Custom Master Page In SharePoint Using Visual Studio

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top