When using the Registration helper library (typically for registering async Task functions), we need to add an extra project property to set ExplicitRegistration, otherwise we get errors like this one when the add-in is loaded:

The fix is to set this project property:
<ExcelAddInExplicitRegistration>true</ExcelAddInExplicitRegistration>