PnP Web Cast - SharePoint Client Side Object Model versioning for your customizations

Download this episode

Download Video

Description

In this PnP Web Cast we concentrated on SharePoint Client Side Object Model (CSOM) versioning and how you can take the different SharePoint target versions into account in your customization. With the release of SharePoint 2016, we have now 3 different CSOM versions and handling this could be a challenge within your customizations. Each of these versions have small differences and you should use correct version dependent on your target environments. This will however cause some challenges on how to manage your builds and Visual Studio project configuration, so that you can still use one code base regardless of the target environment. 

With small adjustments in your Visual Studio solution with preprocessor directives, you can however actually use the exact same code cross all of the environments. This will give you opportunities on building for example automated daily builds for all of the target environments from same Visual Studio solution.

Office Dev PnP initiative have been taken advantage of this design in the Office Dev PnP Core Component, so that we can easily automate daily integration testing cross SharePoint Online, SharePoint 2016 and SharePoint 2013. 

Presentation covers following topics:

  • Which CSOM version I should be using for which SharePoint environment?
  • How the versioning and distribution works for the different environment?
  • How to make my app/add-in to work across different environments?
  • Recommendations around CSOM usage in Visual Studio and why you should not necessarily use available CSOM SDKs directly in enterprise development scenarios

Demo section concentrates on showing following topics:

  • Demonstration of dynamic and automated switching of CSOM references in Visual Studio based on your target environment
  • What changes are required to Visual Studio project to enable dynamic switching 
  • Recommendations around CSOM assembly installation and usage in your development environment

Web cast presenters: Bert JansenVesa Juvonen

Presentation used in this web cast is available from http://docs.com/OfficeDevPnP.

Additional resources

See following resources around the covered topics

Here's also links to specific CSOM distributables available for you, depending on your target environment

Thanks for your interest on the PnP initiative.


If you have any feedback or comments related on this web cast, please use the Office 365 Developer Patterns and Practices Yammer group to provider your input. Thx for your interest advance.

Generic Episode Image

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Neejesh Dhaubhadel

      Any suggestions on how to preserve the moderation status of a document along with its system properties in one go !! I know the CSOM API has a limitation that we cannot modify moderation status along with other properties, so when i try to preserve the system property after updating the approval status a unnecessary version will be made.. how can we handle this type of condition. Any suggestion will be greatly appreciated. Thanks in advance.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.