Sp-dev-docs: can we create SharePoint Framework Extensions for SharePoint Server 2016?

Created on 18 Feb 2018  ·  7Comments  ·  Source: SharePoint/sp-dev-docs

I've created a SPFx webpart and need to add it on custom master page but I'm unable to do that so i googled and found that we cannot add SPFx webpart to custom master page but we can add SharePoint Framework extensions on the master page. here is the link

I'm creating webparts for SharePoint Server 2016 or SharePoint On Premises and there is no option available to create extensions when i select baseline package "Using SharePoint 2016, including SharePoint Online". i can see the extensions when i create solution for SharePoint ONLINE.

Please anyone can confirm
"can we create SharePoint Framework Extensions for SharePoint Server 2016?"

question

Most helpful comment

Using a custom master page does not respect best practices for SharePoint
customisation. If you are starting your project, I would personally
recommend that you try to find alternative approaches.
If you are for example trying to run custom code on every page, an option
to achieve that can be to use a CustomAction element for ScriptLink that
refers your JavaScript file.
An extremely simple way to add the custom action is to use Google chrome
extension SP Editor. Or for a more managed way, use the apply template from
PnP and declare the custom action on your template.
Hope this helps

On Sun, 18 Feb 2018, 10:37 HelloPnP, notifications@github.com wrote:

Thanks for your reply

I've created Master Page using previous development approach i.e visual
studio / Design Manager
i need to add SPFx webpart on master page how can i do?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-docs/issues/1372#issuecomment-366506774,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASq7fEKlGPSIeWyEtmhcmAgXmZym29b-ks5tV_1ngaJpZM4SJoxM
.

All 7 comments

No, that's not possible.
SharePoint Framework extensions only work with modern pages, which are not available for on-prem.
For on-prem scenarios, you still have to use previous development models/approach

Thanks for your reply

I've created Master Page using previous development approach i.e visual studio / Design Manager
i need to add SPFx webpart on master page how can i do?

Using a custom master page does not respect best practices for SharePoint
customisation. If you are starting your project, I would personally
recommend that you try to find alternative approaches.
If you are for example trying to run custom code on every page, an option
to achieve that can be to use a CustomAction element for ScriptLink that
refers your JavaScript file.
An extremely simple way to add the custom action is to use Google chrome
extension SP Editor. Or for a more managed way, use the apply template from
PnP and declare the custom action on your template.
Hope this helps

On Sun, 18 Feb 2018, 10:37 HelloPnP, notifications@github.com wrote:

Thanks for your reply

I've created Master Page using previous development approach i.e visual
studio / Design Manager
i need to add SPFx webpart on master page how can i do?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-docs/issues/1372#issuecomment-366506774,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASq7fEKlGPSIeWyEtmhcmAgXmZym29b-ks5tV_1ngaJpZM4SJoxM
.

As noted by Joel, we do not support SPFx extensions within SP2016 for now. You can use custom SPFx web parts on classic experiences with SP2016 FP2. SP2019 support will be announced later. Closing this for now, as the question has been addressed.

will SharePoint 2019 supports it? thanks

SharePoint 2019 will support modern SPFx experiences, like announced last week in Build. Other SharePoint related on news from build and roadmap updates are available from following resources - https://channel9.msdn.com/Events/Build/2018/BRK2409 (recording) and https://dev.office.com/blogs/live-from-build-updates-for-sharepoint-framework-coming-soon (blog post).

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings