ProjectReference Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
A reference to a Visual Studio project that is part of a Package
[DataContract("ProjectReference")]
public sealed class ProjectReference : IEquatable<ProjectReference>, IIdentifiable
| Name | Description | |
|---|---|---|
| Constructors | ||
| ProjectReference() | Initializes a new instance of the ProjectReference class. |
|
| ProjectReference(Guid, UFile, ProjectType) | Initializes a new instance of the ProjectReference class. |
|
| Properties | ||
| Id | Gets or sets the unique identifier of the VS project. |
|
| Location | Gets or sets the location of the file on the disk. |
|
| RootNamespace | Gets or set the root namespace of the project |
|
| Type | Gets or sets the type of project. |
|
| Methods | ||
| Equals(ProjectReference) | ||
| Equals(Object) | ||
| GetHashCode() | ||
| Operators | ||
| Equality(ProjectReference, ProjectReference) | ||
| Inequality(ProjectReference, ProjectReference) | ||
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
| Type | Name | Description |
|---|---|---|
| System.Guid | id | The identifier. |
| Stride.Core.IO.UFile | location | The location. |
| ProjectType | type | The type. |
Properties
Id
Gets or sets the unique identifier of the VS project.
[DataMember(10)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.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
| Type | Description |
|---|---|
| Stride.Core.IO.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 | Description |
|---|---|
| System.String |
Type
Gets or sets the type of project.
[DataMember(30)]
public ProjectType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ProjectType | The type. |
Remarks
The setter should only be used during serialization.
Methods
Equals(ProjectReference)
public bool Equals(ProjectReference other)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectReference | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Operators
Equality(ProjectReference, ProjectReference)
public static bool operator ==(ProjectReference left, ProjectReference right)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectReference | left | |
| ProjectReference | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(ProjectReference, ProjectReference)
public static bool operator !=(ProjectReference left, ProjectReference right)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectReference | left | |
| ProjectReference | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |