protected virtual IEnumerable <PackageReference> GetPackageReferences()
 {
     if (project.HasPackages())
     {
         var packageReferenceFile = new PackageReferenceFile(project.GetPackagesConfigFilePath());
         return(packageReferenceFile.GetPackageReferences());
     }
     return(new PackageReference [0]);
 }