Use the libraries in the .NET SDK for Azure to manage and consume Azure services in your applications.
Fluent libraries (ending in *.Fluent) improve the developer experience by providing a higher-level, object-oriented API optimized for readability and writability. They clarify what is required vs. optional vs. non-modifiable. These libraries can run side-by-side with non-fluent libraries, so use the fluent packages if you prefer that syntax. Microsoft.Azure.Management.Fluent is a rollup package that contains all of the fluent management libraries.
* - Denotes package is currently incompatible with .NET Core.
If you're using Visual Studio, use the NuGet Package Manager Console to import the package into your project.
With your Visual Studio solution open, launch the console by clicking Tools, followed by NuGet Packager Manager, and then click Package Manager Console.
In the console window, use the Install-Package cmdlet to download and install the NuGet package. For example, to include the latest version of the Azure Resource Management Library for .NET:
Install-Package Microsoft.Azure.Management.ResourceManager -Pre
To use a specific version, include the version number like this:
Install-Package Microsoft.Azure.Management.ResourceMananger -Version 1.4.0-preview
If you're using .NET Core with Visual Studio Code (or any other editor), edit your csproj file to add the package as a PackageReference element. This example uses a specific version of Microsoft.Azure.Management.ResourceManager, which is the best practice, but NuGet floating versions are also supported.
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp1.1</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="1.4.0-preview" /> </ItemGroup> </Project>
Previous versions of .NET Core used project.json files instead of csproj. To learn about mapping project.json to csproj, see this document.