SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SharePoint solution having many projects in it, dlls generated by each project is placed in GAC, now whenever I build the solution and generate the wsp, i can see an old version of a particular project dll is included in the wsp, though inside bin/Debug folder of that particular project the updated dll is present, after deployment if i remove that particular dll from assembly and re-install the new version(bin/Debug version), then only my solution is working properly, can any one explain this behavior?

Things I already checked

  1. Checked manifest.xml if everything is configured properly
  2. Checked project dependencies and build order
share|improve this question
up vote 0 down vote accepted

One of your projects probably includes a reference to the DLL from a different location than the rest. Go through each of the projects in the solution, expand the References, then click on the reference to the library in question. Look at the Path property and make note of where it is getting the library from. My bet is that one of them is pointing to someplace other than the expected location.

share|improve this answer
Hi I already checked project dependencies and reference also, each project refers to some other project of same solution, no external referencing – Diptarag Aug 17 '12 at 17:14
Another option is to do a search of your drives and delete all local copies of that library, including from the GAC, and then rebuild your solution. If there is a bad reference, then the build should fail as it can no longer find the old DLL. That should at least point you towards the problem project – Dave Wise Aug 17 '12 at 17:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.