dotnet / dotnet/command-line-api

[Feature Request] Allow response files to resolve the environment variables.

Open
#2,482 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

When using environment variables in command line, OS resolve these environment variables.
**Example:**
```
# Windows
--token %token%

# Linux
--token $token
```

When trying to use the response file, the Environment Variables are not resolved and used as is.
Currently, System.Command enables the use of the ``` [env:key=value] ``` directive, allowing environment variables to be set from the command line during invocation.
Also, it support of resolving nesting response files for tokens prefixed by ``` @.```

It is nice if System.Command-line-api can support resolving the Environment Variables in response file based on OS .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.