mar*_*o87 6 cmd git-bash visual-studio-2019
我的主要用例是我想使用 devenv.exe /edit 命令使用 git bash 在已运行的 Visual Studio 2019 实例中打开文件。
我遇到的问题是我似乎无法巧妙地 git bash 以实际有效的方式运行命令。
具体来说,这就是我所看到的:
从 Windows cmd:
来自 git bash:
来自 git bash,将命令塞到 .bat 文件下
从 git bash,使用 exe 和文件的完整路径
从 git bash,转义编辑命令并使用完整路径:
从 git bash,通过 git bash 打开 sln 后:
谁能想到一种从 git bash 调用命令的方法,就像 Windows 命令提示符 (cmd.exe) 调用命令一样?
我能找到的唯一解决方案是放入"& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" "solution.sln" /Build Release.ps1 文件并powershell build.ps1从我的.sh文件中调用。
| 归档时间: |
|
| 查看次数: |
1256 次 |
| 最近记录: |