Unable to Add LFSO and/or PDF Exporter As References to a Visual Studio 2010 Project.

August 2, 2010 | KB: 1012632
SDK 8.0

Summary

When attempting to add the LFSO and/or PDFExporter libraries to a project using Visual Studio 2010, the libraries are not available to choose in the .NET tab.

Note: This issue applies to all versions of 2010 (Express and "full"). It does not apply to versions released before 2010.

Cause

The registry keys required to display the libraries in Visual Studio 2010 are not created during installation.

Resolution

Browse to and select the libraries directly from the machine's Global Assembly Cache (GAC):

  1. In your Visual Studio project, right-click the project's name in the Solution Explorer Pane and select Add Reference.

    Note: If this pane is not visible, select View, point to Other Windows, and select Solution Explorer.

  2. In the Add Reference dialog box, select the Browse tab.
  3. Browse to <Window Installation Drive>:\<WinDir>\assembly\GAC_MSIL. <Window Installation Drive> should be replaced by the drive you installed Windows to (in most cases, this will be C). <WinDir> should be replaced with the name of your Windows directory (in most cases, this will be Windows). For example: C:\WINDOWS\assembly\GAC_MSIL.
  4. Perform one of the following actions:
    • To add LFSO as a reference: Browse into the Interop.LFSOXXLib folder, where XX equals the version of LFSO you want to reference (e.g., 80 or 81). Once inside this folder, browse into the subfolder whose name starts with 8. Select Interop.LFSOXXLib.
    • To add PDFExporter as a reference: Browse into the PDFExporterXX folder, where XX equals the version of PDFExporter you want to reference (e.g., 80 or 81). Once inside this folder, browse into the subfolder whose name starts with 8. Select PdfExporterXX.dll.
  5. Click OK.

Note: If you want to add both libraries, perform the above steps twice, once for each library.

Note: You cannot directly browse the GAC using versions of Visual Studio released before 2010.