![](/style/images/good.png)
![](/style/images/bad.png)
Load Visual Studio Environment on GIT Bash.sh
source link: https://gist.github.com/kalj/1c85df4a9ba2f6de78f3bcce658f329c
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Load Visual Studio Environment on GIT Bash.sh · GitHub
Instantly share code, notes, and snippets.
Thanks. But for me the version range string is somehow misinterpreted (I'm using git bash 2.31.1.windows1
with Visual Studio 2019 community), and gives a The version "[16,17\)" is not a valid version range
- instead if I remove the forward slash so line 24 is:
installPath=$("$VSWHERE" -products '*' -version "[$msversion_prod,$msversion_prod_p1)" -property installationPath)
Then it works ok...
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK