I found that (at least in Visual Studio 2010) you need to set the output verbosity to at least Detailed to be able to spot the problem.
It might be that my problem was a reference that was previously a GAC reference, but that was no longer the case after my machine's reinstall.