[Feature Request]: Expand $(~) to $(HOME) or $(USERPROFILE) depending on OS #10160
Labels
backlog
Feature Request
needs-design
Requires discussion with the dev team before attempting a fix.
Priority:2
Work that is important, but not critical for the release
triaged
Summary
Currently, you need to do something like the following to consistently get the
~
home directory in a cross-platform way:It would be awesome if the well-known shorthand
~
(even PowerShell Core knows it) could be used directly in MSBuild as a built-in envvar alias for either$(HOME)
or$(USERPROFILE)
depending on the current OS, just likepwsh
does it.Background and Motivation
No particular problem, just a desire for more consistency across developer tooling in the ecosystem (following the lead from
pwsh
).Proposed Feature
Summary contains the proposal, which would be to consider
~
as an alias to eitherHome
orUserProfile
envvar names in Unix-like vs Windows.Alternative Designs
No response
The text was updated successfully, but these errors were encountered: