Missing compiler required member 'microsoft.csharp.runtimebinder.binder.convert'
Solution 1:
The reference assemblies for Office are exposed via the dynamic
return type. To be able to compile you need to add a reference to Microsoft.CSharp.dll
.
Solution 2:
In addition to what @Alex Ghiondea says, go to the references section of your project:
Right click on references and check the prompted options.
- Click on add reference and a modal with the left menu (assemblies, projects, COM and browse) will appear.
- Click Assemblies
- Check Microsoft.CSharp and click Ok.
- Clean and build your project and the error should disappear.