Sunday 8 March 2015

Introduction

You may experience this error if you try to compile a visual studio solution/project where it is referring to this Microsoft.Office.Interop.Outlook from GAC. This could also happen in a build server where you don’t have outlook installed. You may feel like you hit the dead end where you are forced to install the licensed Microsoft office tools. But we have another alternative which is completely free and ethical.

How did I fix this?

         This is the nuget package. We have a nuget library package which is an alternative to Microsoft.Office.Interop.Outlook. This has the same syntax as the interop Microsoft.Office.Interop.Outlook dll. This is called as NetOffice. All the syntax and classes will be same but reference will be different.