1

I am running my DLL against FxCop and it is returning problems as seen in the image here (It also complains about System.Windows.Browser and System.Core, same versions):

Indirect Assembly issue

I have told FxCop to search the GAC and it isn't helping. I do have System.Runtime.Serialization referenced in my project but it is showing as version 4.0.0.0. I do not see this particular version of the file anywhere.

Although I can skip it means it fails when I use FxCop Integrator in Visual Studio and I don't know what would happen if I tried to integrate into a automatic build.

But more to the point I am curious as to how you fix it as I don't like not understanding whats wrong.

Nicole Calinoiu
  • 20,843
  • 2
  • 44
  • 49
Firedragon
  • 3,685
  • 3
  • 35
  • 75

2 Answers2

1

Please take a look at this answer: https://stackoverflow.com/a/20799480/698

You might still be using FxCop 10.0, which doesn't handle this situation with the PCL.

Once I switched to using either the VS.NET 2012 or VS.NET 2013 FxCop binaries, it worked again.

You included a screenshot in the question. Unfortunately, FxCop11 and FxCop12 do not come with a UI version (since it is integrated into VS.NET)

Community
  • 1
  • 1
slolife
  • 19,520
  • 20
  • 78
  • 121
1

BCL DLLs with version 2.0.5.0 are part of Silverlight 4, which you presumably have not installed on your dev machine. Since you are presumably making no use of the parts of the Esri.ArgGIS.Client.dll assembly that target Silverlight, you could probably safely ignore the warning.

There seems to be an open issue for FxCop Integrator regarding this problem, so you have three basic choices:

  1. Keep things as-is and hope that an option for ignoring these warnings will be introduced in FxCop Integrator reasonably soon,
  2. Stop using FxCop Integrator, or
  3. Install Silverlight 4.

For automated builds, the behaviour will depend on your build platform. Instead of trying to guess what might happen in an automatic build, why don't you go ahead and try it?

Nicole Calinoiu
  • 20,843
  • 2
  • 44
  • 49
  • I can't install Silverlight 4 at the same time as 5 (unless there is a way to do it?) so it looks like it is just something that I have to put up with and I can use FxCop itself rather than the integrator. As for building, I am not doing that but wanted to see if I could get some advance knowledge for the person who does but I think I can leave that as a challenge for them :-) – Firedragon Nov 25 '11 at 15:27
  • If you're actually using Silverlight 5 with the ESRI stuff, you might want to try supplying the /platform argument to the fxcopcmd.exe command line. This _might_ let FxCop substitute the Silverlight 5 assemblies where required, although I have to admit that I've never tried this myself for Silverlight dependencies. – Nicole Calinoiu Nov 25 '11 at 15:32