1
Vote

Code Metrics Workflow Activity Doesn't Work With Windows Server 2003 R2.

description

We have a build controller running on Windows Server 2003 R2 and the installation directory of the code metrics power tool is located at C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\Metrics.exe not at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\Metrics.exe. This causes the code metrics workflow activity to not find metrics.exe and fail. To correct this, I added a static method to determine what architecture Windows is running on and either returns "C:\Program Files" or "C:\Program Files (x86)".

file attachments

comments

cooperba3 wrote Nov 7, 2011 at 11:05 PM

Here's the first file with the static method since I don't have access to your TFS,.

cooperba3 wrote Nov 7, 2011 at 11:07 PM

And the 2nd file referencing that method.

cooperba3 wrote Nov 7, 2011 at 11:12 PM

Sorry I added this to the wrong project. It was suppose to be for the TFSBuildExtensions project. Please disregard.