Add support for resolve references via packages.config.

Code review request from @terrajobst and @davkean. 
Is there a way to get this path without hardcoding ProgramFiles here? E.g. by passing it in from the MSBuild script somehow?