Class ProjectReference
A reference to a Visual Studio project that is part of a Package
[DataContract("ProjectReference")]
public sealed class ProjectReference : IEquatable<ProjectReference>, IIdentifiable
- Inheritance
-
ProjectReference
- Implements
Constructors
ProjectReference()
Initializes a new instance of the ProjectReference class.
public ProjectReference()
Remarks
This constructor is used only for serialization.
ProjectReference(Guid, UFile, ProjectType)
Initializes a new instance of the ProjectReference class.
public ProjectReference(Guid id, UFile location, ProjectType type)
Parameters
id
GuidThe identifier.
location
UFileThe location.
type
ProjectTypeThe type.
Properties
Id
Gets or sets the unique identifier of the VS project.
[DataMember(10)]
public Guid Id { get; set; }
Property Value
- Guid
The identifier.
Remarks
The setter should only be used during serialization.
Location
Gets or sets the location of the file on the disk.
[DataMember(20)]
public UFile Location { get; set; }
Property Value
- UFile
The location.
Remarks
The setter should only be used during serialization.
RootNamespace
Gets or set the root namespace of the project
public string RootNamespace { get; }
Property Value
Type
Gets or sets the type of project.
[DataMember(30)]
public ProjectType Type { get; set; }
Property Value
- ProjectType
The type.
Remarks
The setter should only be used during serialization.
Methods
Equals(ProjectReference)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ProjectReference other)
Parameters
other
ProjectReferenceAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(ProjectReference, ProjectReference)
public static bool operator ==(ProjectReference left, ProjectReference right)
Parameters
left
ProjectReferenceright
ProjectReference
Returns
operator !=(ProjectReference, ProjectReference)
public static bool operator !=(ProjectReference left, ProjectReference right)
Parameters
left
ProjectReferenceright
ProjectReference