admin管理员组文章数量:1287579
I'm trying to install a visual studio extension with ansible win_shell, and having some issues.
The GUI way to do it is to run the Developer Command Prompt for Visual Studio 2022 as Administrator, and then run VSIXInstaller.exe to install the extension. I can install the ext when I do this.
The catch is that Developer Command Prompt is just an alias to VsDevCmd.bat, which sets up the cmd environment. The shortcut in start menu points to:
%comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\VsDevCmd.bat"
I've tried running that command in win_shell, followed by the installcommand, with no luck.
I've tried adding executable: cmd to make win_shell run under cmd.
I've tried cloning VsDevCmd.bat and adding the VSIXInstaller.exe command right at the end of the script.
Nothing seems to be working for me. I suspect this is something related to the way ansible handles multiple commands in one block, and the way VsDevCmd.bat sets up the environment. Does anyone have ideas?
本文标签: Install Visual Studio 2022 extensions with ansible winshellStack Overflow
版权声明:本文标题:Install Visual Studio 2022 extensions with ansible win_shell? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741243173a2364376.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论