trying to use FXCop metrics for code metrics generation - fails to open MSSpell3.dll

Locked trying to use FXCop metrics for code metrics generation - fails to open MSSpell3.dll

  • Tuesday, January 24, 2012 6:18 PM
     
     

    I'm trying to run the Code Metrics console app to provide static analysis of assemblies.  Using the VS Command Prompt I took the following steps:

    1. navigate to: \Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop
    2. run: metrics.exe /gac /f:*.dll /out:metrics.xml

    This is the error I receive at the end:

    "error : CA0055 : Could not load file: 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\MSSpell3.dll'."

    I've tried rebooting to be sure the file was not in contention, to no avail.

    Any help would be greatly appreciated.  Thanks in advance.

    jason

     

All Replies

  • Wednesday, January 25, 2012 5:34 AM
    Moderator
     
     Answered

    It is because of the MSSpell3.dll is a native library.

    And it seems that the Metrics tool is not supporting analysis assembly without the manged code.

    We can create a C++ library project, in Visual Studio, then use the "Analyze"->"Calculate Code Metrics for <project name>", you will find the error message which proved this when you expand the result report.


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us