Skip to content

Create a host symbol for host RID (or RID components) for use in templates #8307

@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

Today we provide the following Host-provided symbols for binding:

  • HostIdentifier
  • WorkingDirectory

We should make it easier for template authors to create per-architecture defaults/options by providing the current host RID as another symbol/bindable value.

Describe the solution you'd like.

We should provide two new symbols to allow template authors to condition code/assets/symbols/etc based on host OS and host architecture.

  • HostPlatform // e.g. win, macos, linux - the first part of the RID. May be dynamic because it is powered by the RID graph.
  • HostArchitecture // eg. x64, arm64, x85 - the second logical part of the RID. May be dynamic because it is powered by the RID graph.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions