diff --git a/.github/workflows/freertos_plus_demos.yml b/.github/workflows/freertos_plus_demos.yml index e3105bc904..656e04fed8 100644 --- a/.github/workflows/freertos_plus_demos.yml +++ b/.github/workflows/freertos_plus_demos.yml @@ -321,7 +321,8 @@ jobs: echo "::group::${{ env.stepName }}" Push-Location Get-Location - & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" + $vsPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath + & "$vsPath\Common7\Tools\Launch-VsDevShell.ps1" Get-Location Pop-Location @@ -425,7 +426,8 @@ jobs: echo "::group::${{ env.stepName }}" Push-Location Get-Location - & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" + $vsPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath + & "$vsPath\Common7\Tools\Launch-VsDevShell.ps1" Get-Location Pop-Location @@ -1221,7 +1223,8 @@ jobs: echo "::group::${{ env.stepName }}" Push-Location Get-Location - & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" + $vsPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath + & "$vsPath\Common7\Tools\Launch-VsDevShell.ps1" Get-Location Pop-Location