Assembly OfficeDevPnp.Core with identity OfficeDevPnp.Core Version 2.15.1705.0 uses Microsoft.SharePoint.Client version 16.1.0.0 which has a higher version than referenced assembly

Hi folks today we will see how to resolve problem related to “OfficeDevPnP.Core.Entities” dll. Sometimes the dll we are using has version related issues as shown below error.

The error looks like below:

Assemby ‘OfficeDevPnp.Core’ with identity ‘OfficeDevPnp.Core, Version=2.15.1705.0, Culture=neutral, PublicKeyToken=3751622786b357c2’ uses ‘Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ which has a higher version than referenced assembly ‘Microsoft.SharePoint.Client’ with identity ‘Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’

Assembly OfficeDevPnp.Core with identity OfficeDevPnp.Core Version 2.15.1705.0 uses Microsoft.SharePoint.Client version 16.1.0.0 which has a higher version than referenced assembly
Assembly OfficeDevPnp.Core with identity OfficeDevPnp.Core Version 2.15.1705.0 uses Microsoft.SharePoint.Client version 16.1.0.0 which has a higher version than referenced assembly

To resolve this we need to get the latest dll from the NuGet Package Manager. Please follow below steps to achieve the same.

Open visual studio 2015 and then go to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution….

sharepoint online pnp add new dll
sharepoint online pnp add new dll

Then in the NuGet Package Manager, search for pnp. And then add the SharePointPnPCore2016 version like below.

Manage NuGet Packages for Solution
Manage NuGet Packages for Solution

Read some sharepoint online tutorials:

Now when you rebuild the solution, the conflict error will not come.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>