[Ubuntu] Add msbuild to software report (#3210)

This commit is contained in:
Mikhail Timofeev
2021-04-19 16:17:48 +03:00
committed by GitHub
parent 98743bcf9c
commit a06f07dfb4
3 changed files with 13 additions and 0 deletions

View File

@@ -61,6 +61,14 @@ function Get-MonoVersion {
return "Mono $monoVersion"
}
function Get-MsbuildVersion {
$msbuildVersion = msbuild -version | Select-Object -Last 1
$result = Select-String -Path (Get-Command msbuild).Source -Pattern "msbuild"
$result -match "(?<path>\/\S*\.dll)" | Out-Null
$msbuildPath = $Matches.path
return "MSBuild $msbuildVersion (from $msbuildPath)"
}
function Get-NodeVersion {
$nodeVersion = $(node --version).Substring(1)
return "Node $nodeVersion"