Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Visual Studio 2022 to 17.8 #8797

Closed
3 of 11 tasks
Sergio0694 opened this issue Nov 14, 2023 · 21 comments
Closed
3 of 11 tasks

Update Visual Studio 2022 to 17.8 #8797

Sergio0694 opened this issue Nov 14, 2023 · 21 comments
Assignees
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress feature request OS: Windows

Comments

@Sergio0694
Copy link

Sergio0694 commented Nov 14, 2023

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
@Sergio0694
Copy link
Author

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! 🙂

@Alexey-Ayupov
Copy link
Contributor

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.

@Sergio0694
Copy link
Author

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!

@stevenvolckaert
Copy link

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?

@Sergio0694
Copy link
Author

@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
Copy link

Marv51 commented Nov 17, 2023

@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?

@Sergio0694
Copy link
Author

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? 😄

@JanRajnoha
Copy link

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

@xmarshal
Copy link

We also waiting Azure vmimage with .net 8.0 support

@mikhailkoliada mikhailkoliada self-assigned this Nov 17, 2023
@steve-torchia
Copy link

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

@asd-oak
Copy link

asd-oak commented Nov 17, 2023

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.

@steve-torchia
Copy link

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

@gtbuchanan
Copy link

gtbuchanan commented Nov 17, 2023

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).

@Sergio0694
Copy link
Author

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

@JanRajnoha
Copy link

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 :/

@taspeotis
Copy link

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

@Sergio0694
Copy link
Author

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 🥲

@Sergio0694
Copy link
Author

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!

@mikhailkoliada
Copy link
Contributor

Deployed to all standard runners

@nevercast
Copy link

nevercast commented Nov 21, 2023

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.

@LePips
Copy link

LePips commented Dec 8, 2023

Please add the Announcement label to this issue so that it can be surfaced in an expected place. This was a major breaking change for many and majorly updated the available build tools on the images - this issue should have had an announcement and a planned rollout instead of being an ad-hoc feature request due to its impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress feature request OS: Windows
Projects
None yet
Development

No branches or pull requests