mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[Ubuntu] Add msbuild to software report (#3210)
This commit is contained in:
@@ -61,6 +61,14 @@ function Get-MonoVersion {
|
|||||||
return "Mono $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 {
|
function Get-NodeVersion {
|
||||||
$nodeVersion = $(node --version).Substring(1)
|
$nodeVersion = $(node --version).Substring(1)
|
||||||
return "Node $nodeVersion"
|
return "Node $nodeVersion"
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
|||||||
(Get-ClangFormatVersions),
|
(Get-ClangFormatVersions),
|
||||||
(Get-ErlangVersion),
|
(Get-ErlangVersion),
|
||||||
(Get-MonoVersion),
|
(Get-MonoVersion),
|
||||||
|
(Get-MsbuildVersion),
|
||||||
(Get-NodeVersion),
|
(Get-NodeVersion),
|
||||||
(Get-PerlVersion),
|
(Get-PerlVersion),
|
||||||
(Get-PythonVersion),
|
(Get-PythonVersion),
|
||||||
|
|||||||
@@ -150,6 +150,10 @@ Describe "Mono" {
|
|||||||
"mono --version" | Should -ReturnZeroExitCode
|
"mono --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "msbuild" {
|
||||||
|
"msbuild -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
|
||||||
It "nuget" {
|
It "nuget" {
|
||||||
"nuget" | Should -ReturnZeroExitCode
|
"nuget" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user