Wednesday, February 16, 2011

Restoring Visual Studio project templates for Windows Identity Foundation

If you have installed the Windows Identity Foundation SDK, in most cases, the installation will add several new Visual Studio project templates that allow you to build Claims-aware applications.

These new project templates will appear when you select New-->Web Site from the Visual Studio File menu.


However, in some cases, you may not see these Visual Studio project templates registered within Visual Studio.
Fortunately, this situation can easily be remedied.


  1. Open Windows Explorer
  2. Browse beneath the Program Files (or Program Files (x86)) directory
  3. Open the Windows Identity Foundation SDK directory
  4. Go into the respective directory for the version of Windows Identity Foundation that you installed (v3.5 or v4.0)
  5. Go into the Visual Studio Extension directory
  6. Go into the 9.0 (Visual Studio 2008) or 10.0 directory (Visual Studio 2010)
  7. Within the respective directory, you should find a set of .zip files which contain the Visual Studio project templates for Windows Identity Foundation
  8. Open the following path in Windows Explorer Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Web\1033
  9. Copy the project template .zip files from the Windows Identity Foundation SDK directory into this directory
  10. If you have a currently running instance of Visual Studio, close the running instance(s)
  11. Re-launch Visual Studio and verify that the new project templates now appear when you attempt to create a new Web Site
  12. If the new project templates still do not appear after launching Visual Studio, re-boot the machine and then subsequenly re-launch Visual Studio.

No comments:

Post a Comment