Azure-Samples / active-directory-dotnet-windows-store

A Windows Store 8.1 or Windows 10 (UWP) application that uses Azure AD and the ADAL library to authenticate the user and call a web API using OAuth 2.0 access tokens.
16 stars 12 forks source link

New release won't install #20

Closed WayPoint7 closed 6 years ago

WayPoint7 commented 8 years ago

When installing via NuGet, this is the reaction of the download/installation process:

Error: Could not install package 'Microsoft.IdentityModel.Clients.ActiveDirectory 3.10.305231913'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.6,Profile=Profile32', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Is there a way to get the latest version installed anyhow? What other (older) version is recommended?

dstrockis commented 8 years ago

Are you trying to install the package into the sample code, or into your own project?

WayPoint7 commented 8 years ago

I'm trying to install in a project of my own. That project is a class library (dll) with WIN8.1/Phone 8.1 as targets. In the mean time I have (at least I think I have) succesfully "installed" by adding the references to Microsoft.IdentityModel.Clients.ActiveDirectory and Microsoft.IdentityModel.Clients.ActiveDirectory.Platform. both in the 3.9.302261508-alpha version. Can you confirm that this is a reliable way to go as well? Is it an option to upgrade to a later version?

jmprieur commented 6 years ago

This now was updated with recents ADAL.NET versions. and this works fine.