-
Notifications
You must be signed in to change notification settings - Fork 867
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
[BUG]: Agent does not support preview versions of Microsoft.VisualStudio.Product.BuildTools #4747
Comments
Additionally, is there any documentation on how to set the IncludePrereleaseVersions flag?
When setting the IncludePrereleaseVersions environment variable to true on my build server and reboot, the script does not pick up. When doing a manual check in PowerShell, it does. For now i have updated the VisualStudioFunctions.ps1 file on my test agents that need to use the preview version, to always include the -prerelease flag in the vswhere command. The capabilities are now added to the agent.
|
@nico-1987, could you set environment variable IncludePrereleaseVersions before execution? Example: $env:IncludePrereleaseVersions = $true
# Execute necessary script that uses IncludePrereleaseVersions variable |
Yes i have tried that. |
@nico-1987, I've created a PR with adding The environment variable |
Looks good, thanks |
The agent with this change is now available for use. |
What happened?
We deployed a preview version of the Visual Studio Build Tools (17.10.0-preview2) on our build server.
When setting up a new agent, the expected Visual Studio system capabilities for VS are not set.
(MSBuild_17.0, MSBuild_17.0_x64, VisualStudio, VisualStudio_17.0, VisualStudio_IDE, VisualStudio_IDE_17.0)
We traced it down to the VisualStudioFunctions.ps1 file that does not search for the prerelease versions of the BuildTools, only for the real Visual Studio editions.
Please add logic to the agents to support the preview versions of the Build Tools.
When adding " -prerelease" to the vswhere.exe line in the VisualStudioFunctions.ps1 script, the agent works properly.
azure-pipelines-agent/src/Misc/layoutbin/powershell/CapabilityHelpers/VisualStudioFunctions.ps1
Line 41 in db013b8
Versions
Reproduced in 3.225.3, confirmed in the sources the issue still exists
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2022 Update 1
Operation system
Windows 10
Version controll system
Git
Relevant log output
No response
The text was updated successfully, but these errors were encountered: