In my case when i installed "MSOffice.Object.Library" in nuget package, the reference error goes away.