Skip to main content
Kofax

"Indirect dependency" error when building modified XML Export Connector

Article # 3037982 - Page views: 130

Issue

When attempting to build a customized Export Connector, we are seeing the following error:

The primary reference "C:\GIT\fasttrackrtw\XML Export Connector\Utility\bin\Release\Kofax.Xml.Export.Utility.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.

Cause

This is due to some referenced components or projects in the solution are targeting .NET Framework 2 while others are targeting .NET Framework 4.

Solution

Make sure that all referenced dlls and included projects in the solution are targeting the same .NET Framework.

Level of Complexity 

Easy

 

Applies to  

Product Version Build Environment Hardware
Kofax Capture ALL   Windows  

References

Add any references to other internal or external articles

 

  • Was this article helpful?