Circular dependency detected

Apr 29, 2011 at 12:46 PM
Edited Apr 29, 2011 at 12:46 PM

Using NuGet 1.3, I have this error message when adding a nuget called XXXCustomer.DLL to my project :

Circular dependency detected 'XXXCustomer.DLL 1.5.11174.0 => XXXLog.DLL 1.1.11172.11 => BBBCustomer.DLL 1.5.11174.0 => BBBCustomer.DLL 1.5.11174.0'.

The dependency tree is the following :

XXXCustomer.DLL 1.5.11174.0
      <dependency id="XXXLog.DLL" version="1.1.11172.11" />
      <dependency id="BBBCustomer.DLL" version="1.5.11173.0" />
      <dependency id="CCCLDAP.DLL" version="1.5.11173.0" />

XXXLog.DLL 1.1.11172.11

BBBCustomer.DLL version=1.5.11173.0
      <dependency id="XXXLog.DLL" version="1.1.11172.11" />
      <dependency id="XXXDataBinding.DLL" version="1.5.11173.1" />

XXXDataBinding.DLL version=1.5.11173.1

CCCLDAP.DLL 1.5.11173.0
 XXXLog.DLL version=1.1.11172.11

XXXLog.DLL version="1.1.11172.11

No circular dependency here.

Could it be a bug ? What is the meaning of the error message ?

Apr 29, 2011 at 3:36 PM
Edited Apr 29, 2011 at 4:32 PM

Looks like it could be a potential bug. Any chance you could send us a minimal repro? If so, open a bug and attach it to the bug.

May 3, 2011 at 1:37 PM

In fact I incorrectly authored a BBBCustomer.DLL.nuspec file adding a reference to itself, built the package, discovered my error, fixed it only in the nuspec file without rebuilding the package. In the end, the nuspec and nupkg files were out of sync. The dependencies showed in my previous post where taken from the .nuspec file.