From 0910e6ad07f92349c3d3c79dc8fdb2dbbc626e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lozier?= Date: Mon, 24 Jun 2024 22:53:50 -0400 Subject: [PATCH] Version information --- Build/steps.yml | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/Build/steps.yml b/Build/steps.yml index ddbdf45d..1f670f4e 100644 --- a/Build/steps.yml +++ b/Build/steps.yml @@ -60,31 +60,15 @@ steps: echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH" echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH" - # Install mono when running on Linux - - ${{ if eq(parameters.os, 'Linux') }}: - - task: Bash@3 - displayName: Version Information - inputs: - type: InlineScript - script: | - - # Dump some info about the tools - mono --version - msbuild /version - dotnet --info - df -Th - - # Dump version info on macOS - - ${{ if eq(parameters.os, 'macOS') }}: - - task: Bash@3 - displayName: Version Information - inputs: - type: InlineScript - script: | - # Dump some info about the tools - mono --version - msbuild /version - dotnet --info + # Dump version info + - task: PowerShell@2 + displayName: Version Information + inputs: + targetType: inline + script: | + dotnet --info + try { msbuild -version } catch { } + try { mono --version } catch { } - powershell: ./make.ps1 displayName: Build