如何获取 Google Chrome 版本的 Azure DevOps 命令提示符
How to get Google Chrome version Azure DevOps Command Prompt
如何使用命令提示符在 Azure DevOps 管道上的 vmImage 上获取 Chrome 版本?
在 Command line
任务中尝试以下脚本:
wmic datafile where name="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" get Version /value
然后选择对应的vmimage
你要运行.
您可以使用包含以下代码的 Powershell 任务在 Azure Devops 中获取 Chrome 版本:
$chromeVersion = ((Get-Item "C:\Program Files\Google\Chrome\Application\chrome.exe").VersionInfo).ProductVersion
如何使用命令提示符在 Azure DevOps 管道上的 vmImage 上获取 Chrome 版本?
在 Command line
任务中尝试以下脚本:
wmic datafile where name="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" get Version /value
然后选择对应的vmimage
你要运行.
您可以使用包含以下代码的 Powershell 任务在 Azure Devops 中获取 Chrome 版本:
$chromeVersion = ((Get-Item "C:\Program Files\Google\Chrome\Application\chrome.exe").VersionInfo).ProductVersion