I already have a build pipeline for an existing project. I tried to change to project to <LangVersion>10</LangVersion>
. Now the build pipeline fails, because it says, 10 is not allowed.
I already installed Build Tools 2022, but it still didn't work. When I open the pipeline to change the MSBuild or Visual Studio version to be used in the build task, I can only select versions up to 2019 or latest (I picked latest here).
The Build Tools 2019 are still installed (I don't wanted to risk, other pipelines to fail because of the update). So maybe the Build agent just takes the wrong MSBuild version? Maybe I have to update the Build Agent itself? (It doesn't work automatically, because of our company firewall, I would have to copy the newer version to the server for deployment.)
Can anyone tell me, what the official way is, to get this to work. My google search didn't give me usable results.