SALES: 1-800-867-1380

Installing Azure AD Authentication Library for .NET

Updated: April 15, 2014

This topic discusses how to install the Azure AD Authentication Library (ADAL) for .NET in your project. If you want to use the prerelease version of the library, see Using ADAL Prerelease Functionality.

ADAL is installed as a NuGet package, which adds the necessary assemblies and references in the selected project.

  1. In Visual Studio, right-click your project in Solution Explorer, and then select Manage NuGet Packages.

  2. In the Manage NuGet Packages window, click the search box and enter ADAL and press Enter.

  3. From the results pane, click the Install button for the applicable result.

  4. The ADAL package will begin downloading. Before it is added to your project, the License Acceptance dialog will appear. If you agree to the license terms, click I Accept.

  5. The latest ADAL assemblies will be installed in your project.

  1. In Visual Studio, click Tools, Library Package Manager, and then Package Manager Console.

  2. The Package Manager Console appears. Enter the following text and press Enter:

    Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory
    
  3. The latest ADAL assemblies will be installed in your project.

The instructions above apply to the current stable version of ADAL. If you want to use the prerelease version of ADAL to take advantage of new features, you need to change the way you install the package by following the instructions below:

  • If you are using the Package Manager GUI, change the default Stable Only drop-down menu and select the Include Prerelease option. The latest prerelease version of ADAL will now appear in the search results.

  • If you are using the Package Manager Console, add the –Pre option to the end of the Install-Package command. For example:

    Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Pre
    
noteNote
By using a prerelease version of ADAL, you acknowledge that its features may not be supported in the final version and that the object model may change.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft