text: How to: Prepare Visual Studio to Use Azure In-Role Cache
  Updated: August 25, 2015
  This topic explains how to prepare a Visual Studio project to use Microsoft Azure Cache. This includes the following tasks:
  - Verify that the correct version of the .NET Framework is targeted.
  - Reference the caching assemblies.
  After these tasks, you can configure your cache client in the dataCacheClient section of the application or web.config files. This enables you to use the caching methods in the Microsoft.ApplicationServer.Caching namespace.
  Open your Visual Studio project.
  In Solution Explorer, right-click the project name and then select Properties.
  For a Visual C# project, use the following steps:
  - Select the Application tab of the Project Properties dialog.
  - Verify that the target framework version is .NET Framework 2.0 or higher (non-client profile).
  For a Visual Basic project, use the following steps:
  - Select the Compile section of the Project Properties page.
  - At the bottom of the Compile page, click the Advanced Compile Options button.
  - Verify that the target framework version is .NET Framework 2.0 or higher (non-client profile).
  To add the assembly references, you must have the Azure SDK installed on your machine. For instructions, see Azure SDK Download.
  The following steps use a NuGet package to add the necessary assembly references and configuration changes. These steps are specific to using In-Role Cache that is hosted on a Azure role in the same deployment.
  In Solution Explorer, right-click on the project name, and then select Add Library Package Reference (NuGet 1.2) or Manage NuGet Packages (NuGet 2.0 or higher).
  In the left pane, select the Online category.
  Install the In-Role Cache package named Microsoft.WindowsAzure.Caching (NuGet 1.2) or Azure Caching (NuGet 2.0 or higher).
  In addition to adding the appropriate assembly references, this package also modifies the configuration file (app.config or web.config) for the targeted project. It adds a boilerplate dataCacheClient section similar to the following.
  The final step is to change the identifier attribute from
  "[cache cluster role name]" to the actual name of the role that has In-Role Cache enabled. In a co-located topology, this could be the same role, such as
  "WebRole1". In a dedicated topology, this could be a different role, such as
  "CacheWorkerRole1". For samples of both topologies, see Azure In-Role Cache Samples.
  The NuGet package adds references to the following assemblies:
  - Microsoft.ApplicationServer.Caching.AzureClientHelper
  - Microsoft.ApplicationServer.Caching.AzureCommon
  - Microsoft.ApplicationServer.Caching.Client
  - Microsoft.ApplicationServer.Caching.Core
  - Microsoft.Web.DistributedCache
  - Microsoft.WindowsFabric.Common
  - Microsoft.WindowsFabric.Data.Common
  See Also