[macOS] Add MSBuild to docs (#3214)

This commit is contained in:
Mikhail Timofeev
2021-04-20 11:24:51 +03:00
committed by GitHub
parent 83f2d79254
commit 4417214480
3 changed files with 14 additions and 1 deletions

View File

@@ -156,6 +156,14 @@ function Get-PHPVersion {
return $PHPVersion
}
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 = Run-Command "node --version"
return "Node.js $nodeVersion"