How to get to Microsoft.Office.Interop.Word.dll?

When FxCop checks the assembly, it gives the following error:

The following reference assembly could not be found. The assembly is
required for analysis and was referenced by Test.dll.

Microsoft.Office.Interop.Word, Version = 12.0.0.0, Culture = neutral,
PublicKeyToken = 71e9bce111e9429c

So, I searched and found the file in:
C: \ Windows \ Assembly \ GAC \ Microsoft.Office.Interop.Word \ 12.0.0.0__71e9bce111e9429c

However, the dialog in FxCop does not allow me to get past C: \ Windows \ assembly. Microsoft seems to have cracked this directory so that it appears in general dialogs, but forgot to tell the FxCop team.

So, how do I get FxCop to find this dll?

BTW: This is Windows XP.

+2
source share
2 answers

I had to deal with this before. My solution was to copy the necessary files to a folder libslocated next to my directory srcand instead refer to this copied file. At compile time, it should be copied to the build folder along with your project build results, and FxCop should not have problems with the selection.

I think the problem is that the assemblies in the GAC are not copied to the project creation folder, and FxCop does not know how to handle links that are not related to the framework.

+1
source

All Articles