Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 not showing up in the dropdown

We have on-prem Azure DevOps 2020 installed. We built a .net core 6 app in Visual Studio 2022. However, when creating the build pipeline, VS 2022 is not showing up in the dropdown.

Has anyone faced this problem? Is MSFT supposed to release a patch that will start displaying VS 2022 in the dropdown?

enter image description here

like image 384
blue piranha Avatar asked Sep 05 '25 03:09

blue piranha


1 Answers

Many people are running into this. No word from MS yet on when or if an update will be available. But these articles may help you find a workaround:

  • How do I update my Azure DevOps on-premise Pipeline tasks to include MSBuild v17 and Visual Studio 2022?
  • https://jessehouwing.net/adding-visual-studio-2022-to-azure-devops-server-2020/
  • https://github.com/microsoft/azure-pipelines-agent/issues/3662

FWIW, I'm working around it by using an explicit MSBuild path as mentioned in this answer. I added a PreferredMSBuildExePath variable to my pipeline and set it equal to %ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\MSBuild.exe. Then I made all my MSBuild steps use $(PreferredMSBuildExePath) as their MSBuild path under Specify Location. I also converted all my Visual Studio steps to MSBuild steps so I could use this explicit path variable.

like image 115
Bill Menees Avatar answered Sep 08 '25 00:09

Bill Menees