I have CruiseControl setup to manage my build process. All was working well until I added LightSpeed to the Visual Studio 2008 project. Now, I've been getting missing reference exceptions in FxCop. First it was missing FireBird, so I downloaded and installed the FireBird Client. Now, I'm getting it on Lucene.Net and can't find a way to get beyond this one. I've tried adding the /d option for the Lucene.Net.dll in the Mindscape providers folder, but no go. I've tried adding that assembly to the gac and having FxCopCmd using the /searchgac switch, but no go. Here is the FxCop entries from my ccnet.config file and the exception entries in my FxCop results. Hopefully, someone can come up with a solution to get me past all of the missing references in LightSpeed using FxCop.
<exec>
<executable>C:\Program Files\FxCop\FxCopCmd.exe</executable>
<baseDirectory>C:\Builds\ApplicationSecurity\ApplicationSecurityWeb-Build</baseDirectory>
<buildArgs>/f:C:\Builds\ApplicationSecurity\ApplicationSecurityWeb-Build\Views\bin /o:c:\Progra~1\CruiseControl.NET\server\ApplicationSecurityWeb-Build\Artifacts\BuildReports\FXCop-results.xml /iit /searchgac /fo /verbose</buildArgs>
</exec>
<Exceptions>
<Exception Keyword="CA0001" Kind="Engine">
<Type>Microsoft.FxCop.Sdk.InvalidMetadataException</Type>
<ExceptionMessage>The following error was encountered while reading module 'Mindscape.LightSpeed': Assembly reference not resolved: Lucene.Net, Version=2.0.0.4, Culture=neutral, PublicKeyToken=3b6dce78d3f9097a.</ExceptionMessage>
<StackTrace> at Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod, String errorMessage)
at Microsoft.FxCop.Sdk.Reader.GetAssemblyFromReference(AssemblyReference assemblyReference)
at Microsoft.FxCop.Sdk.AssemblyReference.get_Assembly()
at Microsoft.FxCop.Sdk.Reader.GetTypeFromRef(Int32 i, Boolean expectStruct)
at Microsoft.FxCop.Sdk.Reader.DecodeAndGetTypeDefOrRefOrSpec(Int32 codedIndex)
at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned)
at Microsoft.FxCop.Sdk.Reader.GetFieldFromDef(Int32 i, TypeNode declaringType)
at Microsoft.FxCop.Sdk.Reader.AddFieldsToType(TypeNode type, FieldRow[] fieldDefs, FieldPtrRow[] fieldPtrs, Int32 start, Int32 end)
at Microsoft.FxCop.Sdk.Reader.GetTypeMembers(TypeNode type, Object handle)
at Microsoft.FxCop.Sdk.TypeNode.get_Members()
at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitType(TypeNode type, TargetType target)
at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitType(TypeNode type, TargetType target)
at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitTypes(TypeNodeCollection types, TargetNamespaceDictionary targets)
at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitModule(ModuleNode module, TargetModule target)
at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitModule(ModuleNode module, TargetModule target)
at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitAssembly(AssemblyNode assembly, TargetFile target)
at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitAssembly(AssemblyNode assembly, TargetFile target)
at Microsoft.FxCop.Engines.Introspection.LoadVisitor.Load(TargetFile target, Boolean buildTree, Boolean queueItems, AssemblyNode loadedAssembly)
at Microsoft.FxCop.Engines.Introspection.LoadVisitor.LoadAssemblies(Queue queue, ExceptionCollection exceptions)</StackTrace>
</Exception>
<Exception Keyword="CA0058" Kind="Engine">
<Type>Microsoft.FxCop.Sdk.FxCopException</Type>
<ExceptionMessage>The referenced assembly 'Lucene.Net, Version=2.0.0.4, Culture=neutral, PublicKeyToken=3b6dce78d3f9097a' could not be found. This assembly is required for analysis and was referenced by: 'Mindscape.LightSpeed.dll'.</ExceptionMessage>
</Exception>
</Exceptions>