Tuesday, February 14, 2006

Dependency not found error

Scenario:

Project does not get built. It gives "dependency not found" error and a bunch of other errors. In my case, the weird errors when it claims that something has no definition for methods, but those methods exists and I could browse to them.

If it's multi-project project, then trace each of the subprojects that cause the problem and try building them. It is more than likely that one of the projects has an outdated version of the dll, and building projects one by one should fix that. Start with UI, then work all the way up to the datastore project. Or other way, but make sure it is logical, otherwise build projects n^2 times :)

VS gets lost in multiple interdependencies and freaks out.

Another hint: look in the .csproj file, there is the references section. Make sure all the files declared in the HintPath section exist and are there in place.

Another way would be substituting the dependency on a project with dependency on the dll file.

Scott fixed it.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home