Open
Description
What happened?
MSBuild@1 task does not find the proper version of MSBuild.exe.
From the build logs it looks like MSBuild@1 task does not specify -prerelease
argument when invoking vswhere.exe
.
Versions
3.248.0
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version controll system
No response
Relevant log output
2024-12-22T04:42:35.5914570Z ##[section]Starting: Build the project
2024-12-22T04:42:35.5929873Z ==============================================================================
2024-12-22T04:42:35.5930357Z Task : MSBuild
2024-12-22T04:42:35.5930577Z Description : Build with MSBuild
2024-12-22T04:42:35.5930834Z Version : 1.246.3
2024-12-22T04:42:35.5931048Z Author : Microsoft Corporation
2024-12-22T04:42:35.5931311Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/msbuild
2024-12-22T04:42:35.5931634Z ==============================================================================
2024-12-22T04:42:38.6827968Z ##[command]"C:\BuildAgent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.246.3\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [17.0,18.0) -latest -format json
2024-12-22T04:42:38.9212075Z ##[command]"C:\BuildAgent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.246.3\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [16.0,17.0) -latest -format json
2024-12-22T04:42:38.9896178Z ##[command]"C:\BuildAgent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.246.3\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [16.0,17.0) -products Microsoft.VisualStudio.Product.BuildTools -latest -format json
2024-12-22T04:42:39.1339789Z ##[command]"C:\BuildAgent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.246.3\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [15.0,16.0) -latest -format json
2024-12-22T04:42:39.2071332Z ##[command]"C:\BuildAgent\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.246.3\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [15.0,16.0) -products Microsoft.VisualStudio.Product.BuildTools -latest -format json
2024-12-22T04:42:39.4206431Z ##[command]"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe" <edited>
2024-12-22T04:42:40.5061889Z Build started 12/21/2024 9:42:40 PM.
2024-12-22T04:42:40.8027216Z ##[error]build\build-all.proj(1,1): Error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.