First we need to install two Exchange Assemblies with the NuGet Package Manager, in order to have an API to…