Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
baronfel opened this issue Aug 20, 2024 · 2 comments
Open

Comments

@baronfel
Copy link
Member

baronfel commented Aug 20, 2024

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

@marcpopMSFT
Copy link
Member

I assume you are proposing Host* for these to be consistent with the existing Identifier one?

@baronfel
Copy link
Member Author

Yeah, exactly - then if we needed an override or to change/let the user specify a different one there might be a Target* variant of those same properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants