在配置好SharePoint 2016开发环境之后,在编译demo项目的时候,出现了两个问题,这里记录一下。
一:
“Could not load file or assembly 'Microsoft.Office.SharePoint.Tools, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.”
无法载入文件或者程序集“Microsoft.Office.SharePoint.Tools”。解决这个问题需要安装SharePoint Server 2016 Client Components SDK,下载地址:
https://www.microsoft.com/en-in/download/details.aspx?id=51679 (2016)
https://www.microsoft.com/en-in/download/details.aspx?id=35585 (2013)
安装之后重新启动VS 2015即可解决。
二:
Missing Microsoft Exchange WebServices
"An error occurred while trying to load a required component. Please ensure that the following prerequisite component is installed:
Microsoft Exchange WebServices."
当试图加载Microsoft Exchange WebServices“的时候出现问题。解决这个问题需要安装Microsoft Exchange Web Services Managed API 2.0,下载地址:
https://www.microsoft.com/en-us/download/details.aspx?id=35371
安装之后重新启动VS2015即可解决。