Pygmay
Pygmay

Reputation: 75

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.

Upvotes: 4

Views: 9462

Answers (2)

Pygmay
Pygmay

Reputation: 75

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.

Upvotes: 1

Pieter21
Pieter21

Reputation: 1845

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)?

Upvotes: 2

Related Questions