Beispiel #1
0
 /// <summary>
 /// Calculates the complete set of all unresolved dependencies for this operation
 /// </summary>
 /// <remarks>
 /// This requires quite a bit of iterating over the graph so the result should be cached
 /// </remarks>
 /// <returns>A set of dependencies that were unable to be resolved by this operation</returns>
 public ISet <LibraryRange> GetAllUnresolved()
 {
     return(new HashSet <LibraryRange>(RestoreGraphs.SelectMany(g => g.Unresolved).Distinct()));
 }
Beispiel #2
0
 /// <summary>
 /// Calculates the complete set of all packages installed by this operation
 /// </summary>
 /// <remarks>
 /// This requires quite a bit of iterating over the graph so the result should be cached
 /// </remarks>
 /// <returns>A set of libraries that were installed by this operation</returns>
 public ISet <LibraryIdentity> GetAllInstalled()
 {
     return(new HashSet <LibraryIdentity>(RestoreGraphs.Where(g => !g.InConflict).SelectMany(g => g.Install).Distinct().Select(m => m.Library)));
 }