Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SolutionPlatform Class

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

    Defines a solution platform.

    System.Object → SolutionPlatformPart → SolutionPlatform
    Derived from SolutionPlatform:

    [DataContract("SolutionPlatform")]
    public class SolutionPlatform : SolutionPlatformPart
    Name Description
    Constructors
    SolutionPlatform()

    Initializes a new instance of the SolutionPlatform class.

    Properties
    DefineConstants

    Gets the define constants that will be used by the csproj of the platform.

    IsAvailable

    Gets or sets a value indicating whether this SolutionPlatform is available on this machine.

    PlatformsPart

    Gets the alternative names that will appear in the .sln file equivalent to this platform.

    RuntimeIdentifier

    Gets or sets the runtime identifier.

    TargetFramework

    Gets or sets the type of the platform.

    Templates

    The list of templates. If empty, no choice will be given to user and default one will be created by concatening ProjectExecutable and Name.

    Type

    Gets or sets the type of the platform.

    Methods
    GetConfigurationProperties(SolutionPlatformPart, String)
    GetParts()

    Gets the all SolutionPlatformPart.

    ToString()
    | Improve this Doc View Source

    Constructors


    SolutionPlatform()

    Initializes a new instance of the SolutionPlatform class.

    public SolutionPlatform()
    | Improve this Doc View Source

    Properties


    DefineConstants

    Gets the define constants that will be used by the csproj of the platform.

    [DataMember(40)]
    public List<string> DefineConstants { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    The define constants.


    IsAvailable

    Gets or sets a value indicating whether this SolutionPlatform is available on this machine.

    [DataMember(50)]
    public bool IsAvailable { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if available; otherwise, false.


    PlatformsPart

    Gets the alternative names that will appear in the .sln file equivalent to this platform.

    [DataMember(20)]
    public SolutionPlatformPartCollection PlatformsPart { get; }
    Property Value
    Type Description
    SolutionPlatformPartCollection

    The alternative names.


    RuntimeIdentifier

    Gets or sets the runtime identifier.

    [DataMember(35)]
    public string RuntimeIdentifier { get; set; }
    Property Value
    Type Description
    System.String

    The runtime identifier.


    TargetFramework

    Gets or sets the type of the platform.

    [DataMember(35)]
    public string TargetFramework { get; set; }
    Property Value
    Type Description
    System.String

    The type.


    Templates

    The list of templates. If empty, no choice will be given to user and default one will be created by concatening ProjectExecutable and Name.

    [DataMember(60)]
    public List<SolutionPlatformTemplate> Templates { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<SolutionPlatformTemplate>

    Type

    Gets or sets the type of the platform.

    [DataMember(30)]
    public PlatformType Type { get; set; }
    Property Value
    Type Description
    PlatformType

    The type.

    | Improve this Doc View Source

    Methods


    GetConfigurationProperties(SolutionPlatformPart, String)

    public IEnumerable<string> GetConfigurationProperties(SolutionPlatformPart part, string configuration)
    Parameters
    Type Name Description
    SolutionPlatformPart part
    System.String configuration
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    GetParts()

    Gets the all SolutionPlatformPart.

    public IEnumerable<SolutionPlatformPart> GetParts()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<SolutionPlatformPart>

    IEnumerable<SolutionPlatformPart>.


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    SolutionPlatformPart.ToString()

    Inherited Members

    SolutionPlatformPart.Name
    SolutionPlatformPart.SolutionName
    SolutionPlatformPart.DisplayName
    SolutionPlatformPart.SafeSolutionName
    SolutionPlatformPart.Cpu
    SolutionPlatformPart.Alias
    SolutionPlatformPart.InheritConfigurations
    SolutionPlatformPart.Configurations
    SolutionPlatformPart.UseWithExecutables
    SolutionPlatformPart.UseWithLibraries
    SolutionPlatformPart.IncludeInSolution
    SolutionPlatformPart.LibraryProjectName
    SolutionPlatformPart.ExecutableProjectName
    SolutionPlatformPart.IsProjectHandled(ProjectType)
    SolutionPlatformPart.GetProjectName(ProjectType)

    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