Search code examples
c#xamarinxamarin.androidazure-active-directoryassembly-references

Missing assembly reference Microsoft.IdentityModel.Clients.ActiveDirectory


I'm currently developing a Xamarin.Android application in VS2013. I want to implement Azure Active Directory in my app following this guide. Then I add Microsoft.IdentityModel.Clients.ActiveDirectory nuget package as described.

Then I want to add an AuthenticationResult attribute, but then I got a missing assemble reference error. Even when I explicitely write (or drag and drop) Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult.

I looked everywhere for solutions, but none fits my problem. (Upgrade/Downgrade target framework didn't solve the issue) If anyone has an idea about this, I would be really thankful because I'm getting out of ideas.

Thank you.


Solution

  • So I found out what was the problem. I had to use a specific version of the package since it's a pre-released version. I had to install 3.0.110281957 exactly then it recognize the reference as I needed.