Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ProjectReference Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    A reference to a Visual Studio project that is part of a Package

    System.Object → ProjectReference
    Derived from ProjectReference:

    [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)
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    System.Object.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation