mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
[macOS] Add VSForMac 2022 Preview (#5561)
This commit is contained in:
committed by
GitHub
parent
536cfa24b0
commit
82d69fd301
@@ -1,10 +1,15 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
|
||||
function Get-VSMacVersion {
|
||||
function Get-VSMac2019Version {
|
||||
$plistPath = "/Applications/Visual Studio.app/Contents/Info.plist"
|
||||
return Run-Command "/usr/libexec/PlistBuddy -c 'Print CFBundleVersion' '$plistPath'"
|
||||
}
|
||||
|
||||
function Get-VSMac2022Version {
|
||||
$plistPath = "/Applications/Visual Studio Preview.app/Contents/Info.plist"
|
||||
return Run-Command "/usr/libexec/PlistBuddy -c 'Print CFBundleVersion' '$plistPath'"
|
||||
}
|
||||
|
||||
function Get-NUnitVersion {
|
||||
$version = Run-Command "nunit3-console --version" | Select-Object -First 1 | Take-Part -Part 3
|
||||
return "NUnit ${version}"
|
||||
|
||||
Reference in New Issue
Block a user