-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Feature Request] Allow response files to resolve the environment variables. #2482
Comments
Prior artMSBuild supports environment variables in its response files, ever since the initial public commit. It uses Environment.ExpandEnvironmentVariables, which recognizes the In addition, MSBuild expands |
@KalleOlaviNiemitalo i try to use the response file in cli tool using System.Command-line-api like
token.rsp is like
but %token% is not resolved and used as is That is why i request this feature If you reviewed the source code you will find no resolve for the environment variables at all. |
@moh-hassan, I understand System.CommandLine does not have this feature yet. I wanted to show how the similar feature in MSBuild works, so that the new feature in System.CommandLine can be made compatible with that. |
I can provide PR for this feature if it is accepted. |
When using environment variables in command line, OS resolve these environment variables.
Example:
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 .
The text was updated successfully, but these errors were encountered: