次の方法で共有


How to add a reference to Microsoft.ApplicationServer.Caching.Client

If you are ready to test out the new caching capabilities in Windows Server AppFabric beta 2 you will have to write some code and you will need a reference to the caching client libraries.

No problem, just select Add Reference and browse away right?  Wrong!  Turns out that the way the stuff gets installed makes it very difficult to find for some pretty complicated reasons that I won’t go into here.

The official docs on MSDN have a solution that involves manually editing project files.  You can read about it here.  There is actually a much easier way.

How to add a reference to Microsoft.ApplicationServer.Caching.Client

  1. Right click on your project and select Add Reference
  2. Select the Browse tab
  3. Enter the following in the filename and press enter
    %windir%\Sysnative\AppFabric
  4. Locate and select both Microsoft.ApplicationServer.Caching.Client and Microsoft.ApplicationServer.Caching.Core

It works… Why?  If you really want to know you can read this article.