References to unused 3rd party dlls

Jan 28, 2013 at 9:14 PM

We use a number of dlls that reference other dlls that are not required by our code. Statlight appears to be checking for every dll (including the unnecessary 3rd party dlls) before any tests begin. Since we do not have the third party dlls, an exception is thrown. Is there a way to avoid this issue?

Jan 28, 2013 at 9:19 PM

If your test project is a Silverlight Application (.xap project) instead of a Silverlight Class Library (.dll), StatLight should only include the assemblies that are included in the .xap.

You can control which assemblies are included in the .xap by changing the "Copy Local" property of the references in the test project.

For a class library project StatLight has to take all the files in the output directory, because it has no way of knowing which assemblies are needed.