I'm interested in working on this issue, for which http://nuget.codeplex.com/workitem/2965 has been opened.
(I've attached a test case to it)
However I'd like to get some feedback on the expected behavior: what should "nuget pack xx.csproj" do, when the packages listed in packages.config do not fulfill all dependencies (i.e. some dependencies of the listed packages are missing?)
(a) Should dependency detection fail (because it could be unreliable), and a error message be shown telling which dependencies are missing ?
(b) Should "nuget pack" ignore the missing dependency and proceed with dependency detection anyway ?
I'm thinking (a) is probably the best option and most useful/robust one as it helps developer fix their packages.config should a problem arise.