0
我发现,试图为SharePoint项目引用某些SharePoint库,我得到类似的错误创建假货装配时:无法创建一个SharePoint项目假货装配
Failed to load properly Derived method 'RequiresWebPartClientScript' in type 'Microsoft.Office.Server.Search.WebControls.ScriptWebPart' from assembly 'Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' cannot reduce access.
这通常发生在SharePoint项目引用不在库中的GAC如:Microsoft.SharePoint.ApplicationPages和Microsoft.ApplicationPages.Administration