-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsno link errors Actual resultsLinking Errors:
SuggestionI think it would be great to be able to configure the environment with explicit versions like we can do with flutter and ruby etc. on macOS machines. Currently updating this costs me around 12 min every build. Is there a way of caching this? Is caching faster? |
Beta Was this translation helpful? Give feedback.
Answered by
dam-ease
Apr 17, 2025
Replies: 1 comment 4 replies
-
Use the following script as a workaround to update visual studio: Write-Output "Attempting to update Visual Studio Build Tools"
$vsInstallerPath = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe"
if (Test-Path $vsInstallerPath) {
Write-Output "Visual Studio Installer found at $vsInstallerPath"
$argumentList = "updateall --quiet --norestart"
Write-Output "Executing: $vsInstallerPath $argumentList"
$process = Start-Process -FilePath $vsInstallerPath -ArgumentList $argumentList -Wait -PassThru
if ($null -eq $process) {
Write-Output "ERROR: Start-Process did not return a process object. Update status unknown."
throw "Visual Studio update failed (Start-Process error)."
}
$exitCode = $process.ExitCode
Write-Output "Visual Studio update process finished. Exit code: $exitCode"
if ($exitCode -ne 0 -and $exitCode -ne 3010) {
Write-Output "ERROR: Visual Studio update failed with exit code $exitCode."
throw "Visual Studio update failed with exit code $exitCode."
}
elseif ($exitCode -eq 3010) {
Write-Output "Visual Studio update finished with exit code 3010 (Success, restart suppressed)."
}
else {
Write-Output "Visual Studio update appears successful (Exit code 0)."
}
}
else {
Write-Output "WARNING: Visual Studio Installer not found at expected path: $vsInstallerPath"
Write-Output "Skipping VS update. Build might fail if the existing VS version is incompatible."
throw "Visual Studio Installer not found, cannot update."
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @krjw-eyev,
We have now updated the version of Visual Studio on the build machine. You can try the build without the script now. Thanks for your patience.