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顯示爲已棄用。