anchor.diff:                    | Some path -> addFunc path file references model
                     | _ -> model
                 | None -> model) initialState libs
  -        
  +
           let newState = addItem extractLibFolder addPackageFile (fun i -> i.LegacyReferenceFileFolders) { installModel with LegacyReferenceFileFolders = libFolders }
           addItem extractRefFolder addPackageRefFile (fun i -> i.NewReferenceFileFolders) { newState with NewReferenceFileFolders = refFolders }
   
  
positive.code:     member this.AddTargetsFile(path, file) = InstallModel.addTargetsFile path file this
  
      member this.AddTargetsFiles targetsFiles = InstallModel.addTargetsFiles targetsFiles this
      
      member this.AddFrameworkAssemblyReference reference = InstallModel.addFrameworkAssemblyReference this reference 
  
      member this.AddFrameworkAssemblyReferences references = InstallModel.addFrameworkAssemblyReferences references this
       
      member this.FilterBlackList () = InstallModel.filterBlackList this
  
      member this.FilterExcludes excludes = InstallModel.filterExcludes excludes this
  
negative.code:     let calcRefFolders = calcLibFoldersG extractRefFolder
  
      let addFileToFolder (path:LibFolder) (file:string) (folders:LibFolder list) (addfn: string -> InstallFiles -> InstallFiles) =
          folders
          |> List.map (fun p ->
              if p.Name <> path.Name then p else
              { p with Files = addfn file p.Files })
  
      let private addPackageFile (path:LibFolder) (file:string) references (this:InstallModel) : InstallModel =
          let install =
              match references with
              | NuspecReferences.All -> true
              | NuspecReferences.Explicit list -> List.exists file.EndsWith list
  
          if not install then this else
          { this with
              LegacyReferenceFileFolders = addFileToFolder path file this.LegacyReferenceFileFolders InstallFiles.addReference }
  
      let private addPackageRefFile (path:LibFolder) (file:string) references (this:InstallModel) : InstallModel =
          let install =
              match references with
              | NuspecReferences.All -> true
              | NuspecReferences.Explicit list -> List.exists file.EndsWith list
  
          if not install then this else
          { this with
              NewReferenceFileFolders = addFileToFolder path file this.NewReferenceFileFolders InstallFiles.addReference }
  
      let addLibReferences libs references (installModel:InstallModel) : InstallModel =
          let libs = libs |> Seq.toList
          let libFolders = calcLibFolders installModel.PackageName libs
          let refFolders = calcRefFolders installModel.PackageName libs
  
          let addItem extract addFunc getFolder initialState =
  