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.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bhawana Rathore

Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

>