Example #1
0
 /// <summary>
 /// Constructor for the base class <see cref="VsModel"/>
 /// </summary>
 /// <param name="isLoaded">Flag that determines if the model is loaded.</param>
 /// <param name="hasErrors">Flag that determines if errors occured while loading the model.</param>
 /// <param name="modelErrors">The list of errors that occured if any.</param>
 /// <param name="name">The name of the model.</param>
 /// <param name="filePath">The fully qualified file path to the reference</param>
 /// <param name="type">The type of reference that is set for the project.</param>
 /// <param name="aliases">Readonly list of the aliases assigned to this reference.</param>
 protected VsReference(bool isLoaded, bool hasErrors, IReadOnlyList <ModelException <VisualStudioModelType> > modelErrors,
                       string name, string filePath, ProjectReferenceType type, IReadOnlyList <string> aliases)
     : base(isLoaded, hasErrors, modelErrors, VisualStudioModelType.Reference, name)
 {
     _filePath = filePath;
     _type     = type;
     _aliases  = aliases ?? ImmutableList <string> .Empty;
 }
 public ProjectReference(string name, ProjectReferenceType type)
 {
     ProjectName = name;
     Type        = type;
 }