Missing assembly reference Microsoft.IdentityModel.Clients.ActiveDirectory

Pygmay picture Pygmay · May 6, 2015 · Viewed 8.4k times · Source

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.

Answer

Pieter21 picture Pieter21 · May 6, 2015

Few things to check or try:

Does the Reference to Microsoft.IdentityModel.Clients.ActiveDirectory appear in the References list from your solution?

If it appears, what are the properties, like copy to output, absolute/relative path?

Is it added for all Project configurations (Debug/Release)?