actions/runner-images

Update Visual Studio 2022 to 17.8

Sergio0694 opened this issue ยท 21 comments

Tool name

Visual Studio 2022

Tool license

https://visualstudio.microsoft.com/license-terms/vs2022-ga-proenterprise/

Add or update?

  • Add
  • Update

Desired version

17.8 (https://visualstudio.microsoft.com/en/downloads/)

Brief description of tool

This is the latest stable release of VS2022, which includes the .NET 8 SDK.

It's also explicitly needed to build Desktop-MSBuild-dependent project with .NET 8.

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Hey @shamil-mubarakshin, would you be able to help with this, and/or provide an ETA for when this will be available? Because GitHub Actions don't have preview versions of VS, updating to 17.8 is needed to unblock building projects that depend on Desktop MSBuild and that also need the .NET 8 SDK (right now, they'd only find the .NET 7 SDK that way, and fail).

Thank you! ๐Ÿ™‚

Hello @Sergio0694. We waited until the 17.8 version became available for download. We will try to deliver the newest version as soon as possible.

Yup that's completely fair! That's also why I only opened this now that VS 17.8 just went live ๐Ÿ˜„

Thank you for your help, looking forward to the next image updates!

We're using Azue Pipelines hosted agent windows-2022.

Is this the correct issue for updating the included Visual Studio version to version 17.8? Or should I open a new issue for that?

@Alexey-Ayupov @mikhailkoliada just trying to better plan the rest of my work that depends on this, do you know when is the deployment of the new Windows2022 image with VS 17.8 planned for? I see #8826 is already up as well with the changelog ๐Ÿ‘€

Thank you!

Marv51 commented

@Sergio0694 I'm just lurking here, cause I am also waiting for 17.8.

On the main page (README.md) it says under "Rollout Progress of Latest Image Release", for windows-2022 and 20231115.2.1
13.65%.

statuswin22

So I would interpret that to mean that it is already rolling out?

Ooh interesting, I had missed that! I had just tried running my pipeline again, and it still failed due to picking up the image with VS 17.7 still, so I thought it was just not available at all yet. Is there a way to opt-in into using the latest image that's rolling out, or is that just randomly assigned when a new job goes to pick up an image to run on? Ie. do I just re-trigger it until it works? ๐Ÿ˜„

What about availability in Azure DevOps? Will it be available at same time as in GitHub Actions?

We also waiting Azure vmimage with .net 8.0 support

Yesterday, mid-day, our image seems to have been changed to include .net 8.0 support but it BROKE our build which was depending on the previous image. Is there any way for us to get back to that previous image? This was a pretty big braking change on us

All of our Azure DevOps pipelines, which ask for windows-latest, picked up the revised windows-2022 image at about this time yesterday. We had .net8 branches triggering (failing) builds until this showed up; after it did, all* subsequent builds got the new image. I don't know if we got in early because we had failing builds or were just lucky, but I'll take it.

* One pipeline's run one time got the old image. Retry of the job got the new image.

Our problem is that the revised windows-2022 image started failing our builds because the newer version of MSBuild was raising Nuget Warnings as errors. In our case we need to be able to use that older image so we dont have those failures. Basically our builds started breaking across our entire company due to the underlying image changing - not due to something we did on our own

I can confirm most Azure Pipelines windows-2022 agents we've seen in the wild today have been updated to VS 17.8. Unfortunately, this came with a Java SDK 11 requirement that breaks Xamarin Android builds (see #8837 and microsoft/azure-pipelines-agent#4531).

Still can't pick up VS 17.8 in any of my pipeline runs. And the rollout percentage seems to be... Going back down? ๐Ÿฅฒ

I tried pipelines and some works for 1st attempt (so i thought image is deployed), but one has to be tried for nine times to pick version with .NET 8 :/

Just add this?

- name: Install WinGet
  uses: Cyberboss/install-winget@v1

- run: winget install -e --silent --accept-source-agreements --accept-package-agreements --id Microsoft.VisualStudio.2022.Enterprise
  continue-on-error: true

50 minutes later:

image

That doesn't really seem viable though if you have a larger pipeline, if it takes about 50 minutes to install VS2022 in each job you have. Eg. my pipeline has 12 of them ๐Ÿฅฒ

Looks like rollout is nearing 90%, and I can see all of my pipelines consistently picking up the new image now ๐ŸŽ‰

Thanks everyone working on the runner images for the quick turnaround!

Deployed to all standard runners

Just as a heads up, this seems to have broken my Azure Pipeline builds, as MSBuild 17.8.3 is unable to restore packages from private repos (401 Unauthorised), whereas MSBuild 17.7.3 had no such issue. I suspect I won't be the only one and further issues will be raised.