Compatibility problem using VSTO + MSAL.net

Pablo Glomby 186 Reputation points
2021-01-05T14:56:01.54+00:00

Hello
All I need to do is to just create an Outlook VSTO project and use the MSAL.net nuget package.
So I start my new project:
53646-image.png

Then I go to the Package Manager Console and I type:
Install-Package Microsoft.Identity.Client -Version 4.24.0

I confirm I have this:
53653-image.png

Now in the configuration manager I select Release (Any CPU).
I Rebuild the project and I get:
53632-image.png

No problem here since this is expected. I do:
53625-image.png

Now I do Rebuild all again and I get:
53540-image.png

It seems the Microsoft.Windows.Sdk.Contracts package is not compatible with the VSTO project settings... is there any workaround?

Thanks

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,359 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,976 Reputation points Microsoft Employee
    2021-01-08T22:37:47.61+00:00

    Hi @Pablo Glomby , our product team said that this is a bug they are tracking and the best way around it is to use 4.23 or wait for 4.25.

    Best,
    James