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:
- navigate to: \Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop
- 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.
Wednesday, January 25, 2012 5:34 AMModerator
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.
MSDN Community Support | Feedback to us
- Marked As Answer by Mike Dos ZhangMicrosoft Contingent Staff, Moderator Wednesday, February 01, 2012 6:47 AM