The Microsoft Office infopath 2007 setup program installtwo. xml files that are designed to display programming information from the class library reference inline in the code editor and the Object Browser when working with members ofMicrosoft. Office. infopathAndMicrosoft. Office. InterOP. infopath. semitrustNamespaces.
Displaying programming information in the Code Editor
Displaying programming information in the Object Browser
For this programming information to be visible in the Visual Studio Tools for applications (vsta) and Visual Studio development environments, you must copy the two. XML files from the infopath setup Directory into the locations in the Global Assembly Cache (GAC) where each of the infopath assemblies are installed. to do that, you use the command prompt to copy the files as described in the following steps.
To copy the intelliisense documentation files for the Microsoft. Office. infopath and Microsoft. Office. InterOP. infopath. semitrust assemblies into the GAC:
- Open the command prompt.
- Execute each of the following commands, pressingEnterAfter each command:
CD \ Program Files \ Microsoft Office \ office12
Copy Microsoft. Office. infopath. xml % WinDir % \ Assembly \ gac_msil \ microsoft. Office. infopath \ 12.0.0.0 _ 71e9bce111e9429c
Copy Microsoft. Office. InterOP. infopath. semitrust. xml % WinDir % \ Assembly \ GAC \ microsoft. Office. InterOP. infopath. semitrust \ 11.0.0.0 _ 71e9bce111e9429c
NoteIf you are running Windows Vista and using User Account Control, you must right-click the shortcut cut used to open the command prompt, and then clickRun as AdministratorTo successfully copy the. xml files into the GAC.
Mark Roberts
Programming writer
Filed under: writing code
Turn: http://blogs.msdn.com/infopath/archive/2007/03/05/enabling-infopath-intellisense-documentation-in-vsta-and-visual-studio.aspx