0

我试图从NuGet包管理器添加“SharePointPnPCore2016”包,但我得到这个错误:无法添加SharePointPnPCore2016包在VS2017

Failed to add reference. The package 'SharePointPnPCore2016' tried to add a framework reference to 'Microsoft.Office.Client.Policy, Version=16.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. Error HRESULT E_FAIL has been returned from a call to a COM component.

在那里我想添加这个包是使用.NET中的应用框架4.5.2。

有什么想法可能导致这种情况?

在此先感谢

回答

0

为了使工作我最初安装的是促使个人的DLL。有11个这样的组装商必须安装。但后来我意识到,我不得不明确安装 “SharePointPnPCoreOnline”,我猜是替代“OfficeDevPnPCore16”。 OfficeDevPnPCore16显示为已弃用。