views:

18

answers:

3

I've written a custom task for analyzing code coverage results. While building the entire solution, I get the following error.

error MSB4018: System.IO.FileNotFoundException: Could not load file or 
assembly 'Microsoft.VisualStudio.Coverage.Analysis, Version=9.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find 
the file specified.

I checked the path specified during the build process and the dll location is correct. Yet, i get a FileNotFoundException.
Am I missing something?
Thanks...

A: 

This may sound like a silly suggestion, but have you checked that you're running the Visual Studio 200X Command Prompt and not the Visual Studio 200X x64 Cross Tools Command Prompt ?

mdresser
I just confirmed it. I'm running the 200X Command Prompt only.
Sidd
A: 

I managed to fix the problem. I had to add the assembly to the GAC using gacutil.exe. The error vanished once the assembly was added.

Sidd
A: 

hey i'm looking to do the exact same thing that you are, i'm not familiar with msbuild custom tasks do you have an example/code posted somewhere that loads in code coverage results and parses it or something similar?