validate shape of packages.config
and consolidate error handling
#11303
+494
−288
packages.config
and consolidate error handling
#11303