Unable to Publish Library - Dependency error

I can´t publish a library to orchestrator tenant.
It always fails on the error:

Unexpected error has occurred during the library compilation process:
Unable to create activity builder for SendEmail.xaml. Reason was 'The invocation of the constructor on type 'UiPath.Mail.Exchange.Activities.SendExchangeMail' that matches the specified binding constraints threw an exception. Could not load file or assembly 'Microsoft.Identity.Client, Version=, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae' or one of its dependencies. The system cannot find the file specified.'.

This is a library my co-worker made and for some reason he can publish but not me.
My UiPath.Mail.Activities version is v1.10.5 and I have tried with older versions too.

just check the settings in orchestrator for library feed source

In your Or Orchestrator → options → Settings → Deployment, Switch the source to tenant

It was already on Tenant