连接到 EWS(Exchange 2016)
Connect to EWS (Exchange 2016)
我正在这样创建我的服务:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
目前我正在使用 .NET 4.6.1 和 Microsoft.Exchange.WebServices v15.0.0.0
(Nuget 版本 2.2.0
。
我缺少 enums
Exchange 2016
。
为什么会这样?
该 NuGet 程序包的最后更新时间为 2015 年 1 月 15 日。Exchange 2016 于 2016 年 10 月 1 日发布。由于该版本的 Exchange 在创建程序包时不存在,并且 Microsoft 没有提前添加它时间,这就解释了为什么它不存在。
Here 我找到了解决方法:
Browse to the location where you installed
the EWS Managed API DLL. The default path set by the installer is the
following: C:\Program Files\Microsoft\Exchange\Web
Services\<version>\
. The path can vary based on whether you download
the 32 or 64 bit version of the Microsoft.Exchange.WebServices.dll.
Choose Microsoft.Exchange.WebServices.dll
and select OK or Add. This
adds the EWS Managed API reference to your project.
这应该获得 "latest" 版本 - 或者比 NuGet 上的版本更新的版本。
您还可以从 GitHub and build the assembly by yourself, or you use the Exchange.WebServices.Managed.Api nuget package created bymarklamley 下载最新版本的 EWS Managed API
。它包括 EWS Managed API
项目的当前版本 2.2.1.1。
我正在这样创建我的服务:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
目前我正在使用 .NET 4.6.1 和 Microsoft.Exchange.WebServices v15.0.0.0
(Nuget 版本 2.2.0
。
我缺少 enums
Exchange 2016
。
为什么会这样?
该 NuGet 程序包的最后更新时间为 2015 年 1 月 15 日。Exchange 2016 于 2016 年 10 月 1 日发布。由于该版本的 Exchange 在创建程序包时不存在,并且 Microsoft 没有提前添加它时间,这就解释了为什么它不存在。
Here 我找到了解决方法:
Browse to the location where you installed the EWS Managed API DLL. The default path set by the installer is the following:
C:\Program Files\Microsoft\Exchange\Web Services\<version>\
. The path can vary based on whether you download the 32 or 64 bit version of the Microsoft.Exchange.WebServices.dll. ChooseMicrosoft.Exchange.WebServices.dll
and select OK or Add. This adds the EWS Managed API reference to your project.
这应该获得 "latest" 版本 - 或者比 NuGet 上的版本更新的版本。
您还可以从 GitHub and build the assembly by yourself, or you use the Exchange.WebServices.Managed.Api nuget package created bymarklamley 下载最新版本的 EWS Managed API
。它包括 EWS Managed API
项目的当前版本 2.2.1.1。