Transform your Visual SharePoint Web Parts to the new SharePoint Framework

4 min read
4 min read

We from Rencore were fortunate enough to be able to join the DevKitchen sessions from Microsoft, which gave us the great opportunity to directly interact with the engineering team about the development of SharePoint framework. As a result we now transform your old Visual SharePoint web parts into new SharePoint Framework web parts.

When in Brussels, where the DevKitchen event in Europe was held, we were able to play with the SharePoint Framework, ask questions, give feedback, show thumbs ups, show thumbs down. All in all, is was a very interactive event, and I’m looking forward to any future events like that! This is really the new Microsoft: transparent, open, and willing to interact and listen to the community.

It’s new, it’s a change for the SharePoint framework

Yes, it’s new. Yes, it’s a change. And looking back to the time when other changes were introduced to the SharePoint developer community I’m sure that many people will reply with ‘why?’, or ‘I’m happy with how it is today, why change?’.

We have to keep telling ourselves, I think, that we’re working in a changing market. Demands change, functionality changes, insights changes. I think that’s exactly why I find working in IT so exciting. Never a boring day!

The last change that Microsoft introduced in SharePoint was done with the release of SharePoint 2013: the add-in model. That’s over 3 years ago. Insights have changed since then.

Take for instance the rather confusing security model: an app was acting as such as a principal. You gave the app certain rights, but then there was also the user using that app, also have certain rights. Those 2 layers are confusing for many devs. Then there is app-only access, etc. Complex, confusing and very proprietary. Try to explain the add-in model security to a person that only have been building ASP.NET MVC sites…

The add-in model works. It works in many cases and many people have invested much time and effort in it to learn CSOM/JSOM/REST. Those investments are still valid as the add-in model is here to stay. Your apps will continue to work as you built them, and you can build new apps too.

But, if you have invested in the Add-in Model using CSOM and you feel comfortable with that model, then please continue to use it. It is here to stay.

Transform Visual SharePoint web parts

As I’m responsible for the upcoming Rencore Transformator, I immediately started to prototype a solution which allows you to transform existing artifacts to the new SharePoint framework. While I cannot show you the generated code yet, our current prototype transforms the UI of an ‘old school’ Visual SharePoint Web Part to a new SharePoint web part based upon the upcoming SharePoint framework.

What we do is that we analyze your solutions, discover the visual SharePoint web parts, and then we transform, as much as possible, the user interface part of the visual webpart to a new client webpart.

The image below shows the visual SharePoint web parts in Visual Studio. This SharePoint web part is part of a normal full-trust/WSP solution.

SharePoint visual webpart

We ran the solution through the Transformator, and out came code that you can use as is in the new SharePoint Framework. Below you see a screen shot where we used that code:

SharePoint Framework webpart

The two used technologies (C# and JavaScript/REST) are very different from each other when it comes to how to code business logic, so it is close to impossible right now to transform that part. Having said that, we do have some ideas in that area too and are working on improving our transformation code continuously.

The Transformator

The Rencore Transformator is an upcoming product of ours that will allow you to drop in your solutions. We will dive into your code, your artifacts and transform those artifacts using the technology of your choice: CSOM, JSOM, REST, PowerShell, PnP CSOM, PnP PowerShell or the PnP Provisioning Engine. When Microsoft releases the SharePoint Framework we will also support that as a possible transformation target for artifacts that can be transformed.

Ready for the future

At Rencore we’re ready for the future. SPCAF will support the new SharePoint Framework (read more about this in Waldeks blogpost), Transformator will support the new SharePoint Framework and all our other upcoming products will, where applicable, support the new SharePoint framework. It’s exciting and I can’t wait to show you what we have upcoming!

If you want to learn more about the announcements that Microsoft made, check out this link:


Subscribe to our newsletter