microsoftgraph / msgraph-sdk-dotnet-auth

Archived - use the TokenCredential classes provided by Azure.Identity. https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme
https://graph.microsoft.com
MIT License
78 stars 19 forks source link

Microsoft.Graph.Auth. BadImageFormatException loading WorkerRole in Azure emulator #64

Closed stefan2410 closed 3 years ago

stefan2410 commented 4 years ago

Depedency on Microsoft.Graph.Auth last preview 4. The solution was built normally but when I load the WorkerRole in Azure emulator, I get the following exception.

       System.BadImageFormatException: 'Could not load file or assembly 'Microsoft.Identity.Client, 
       Version=4.8.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae' or one of its dependencies 

AB#7209

maisarissi commented 3 years ago

Hi @stefan2410

Thank you for reaching out and opening this issue. This client library will not leave the preview state. Microsoft.Graph v4 now integrates with Azure.Identity which supports a wide variety of authentication flows out of the box. We suggest that you migrate to v4 + Azure.Identity. Read more about it in this issue.

This issue won't be fixed, and the repository will be archived.