Fixed a bug where nuget packages may not be resolved.