tags:

views:

30

answers:

1

I'm running FxCop from MSBuild and during the analysis it throws an error stating that it could not find the System.XML assembly and that I need to specify the location using the /directory parameter, which I then did but it didn't work. Any idea what I should do? I am running it on projects built on .Net 4.0

+1  A: 

Basically the Gac has changed in 4.0

First use FxCop 10.0, not FxCop 1.36. .Net 4.0 has a private Gac

Set FxCop to search the Gac If you're using an FxCop project (*.FxCop) open the FxCop project with FxCop (Gui) Project -> Options -> Spelling & Analysis Checkmark "Search the Global Assembly Cache for missing references" ok, save.

If you're using MSBuild.Community.Tasks in your FxCop "SearchGac="true"

mcdon