dotnet / dotnet/project-system
Launch profile environment variables are not available for substitution within the same launch profile
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
Stems from https://developercommunity.visualstudio.com/t/Launch-profile-environment-variable-prob/10042433 ([AB#1540437](https://devdiv.visualstudio.com/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_workitems/edit/1540437))
## Steps to reproduce
1. Create a launch profile
2. Add an environment variable (e.g. `FOO`)
3. Attempt to use that variable in another field such as the command line (e.g. `%FOO%`)
## Expected behaviour
The environment variable is substituted in the other field.
## Actual behaviour
No substitution occurs.


## Analysis
Our current environment variable substitution uses the environment variables of `devenv.exe` only. Those specified in the launch profile itself are not considered.
Contributor guide
Assessment
This issue has not been assessed yet.