Open r998877 opened 6 years ago
For those looking for a temporary solution:
Download this repository and add all of the files in PnP-Sites-Core-master\Assemblies\15
as references.
Is there a link missing?
I didn't put one originally but here's the download I was referring to: https://github.com/SharePoint/PnP-Sites-Core/archive/master.zip
The error tells the name of the missing dependencies - install them manually and run the package again.
I just had this problem. I installed Microsoft.SharePoint.Client.Online.CSOM package with SharePoint CSOM DLLs and still got this error.
It turned out I had to make sure SharePoint DLLs are referenced in the project where I try to install SharePointPnPCore2013
Category
[ x] Bug [ ] Enhancement
Environment
[ ] Office 365 / SharePoint Online [ ] SharePoint 2016 [ x] SharePoint 2013
If SharePoint on-premises, what's exact CU version: 15.0.4911.1000
Expected or Desired Behavior
Adding Nuget Package in VS works without errors.
Observed Behavior
When adding Nuget Package SharePointPnPCore2013 (Install-Package SharePointPnPCore2013 -Version 2.20.1711) lots of errors are thrown like
Install-Package : Failed to add reference. The package 'SharePointPnPCore2013' tried to add a framework reference to 'Microsoft.SharePoint.Client.Search.Applications, Version=15.0.0.0' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
This is just an example. Other DLLs are missing as well. The Nuget Package expects certain SharePoint CSOM DLLs in the GAC, but on a normal client PC (not a SharePoint server) those DLLs are not present. To overcome this issue lots of SharePoint DLLs have to be copied over from a SharePoint server to a local client PC - in total 11 DLLs for the Nuget Package to work.
Steps to Reproduce
Start Visual Studio Create console application (Target Framework 4.6.1) Open Nuget Package Manager console Run: (Install-Package SharePointPnPCore2013 -Version 2.20.1711