Table of Contents

Class ProjectReference

Namespace
Stride.Core.Assets
Assembly
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
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 Guid

The identifier.

location UFile

The location.

type ProjectType

The 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

string

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 ProjectReference

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 ProjectReference
right ProjectReference

Returns

bool

operator !=(ProjectReference, ProjectReference)

public static bool operator !=(ProjectReference left, ProjectReference right)

Parameters

left ProjectReference
right ProjectReference

Returns

bool