Open azchohfi opened 4 weeks ago
This seems to be missing arm64: https://github.com/microsoft/azure-pipelines-tasks/blob/a3c064aaffa164e48da873e564de7022ac5d82d3/Tasks/UseDotNetV2/externals/get-os-platform.ps1#L11-L12 But weirdly it went the x86 code path.
Hi @azchohfi thank you for reporting this issue. As I see, the script determines the architecture by checking the env variable PROCESSOR_ARCHITECTURE. It seems like this variable does not necessarily return the actual architecture of the processor but of the process with this env variable.
Is there any chance that you're using the x86 version of the self-hosted agent?
New issue checklist
Task name
UseDotNet
Task version
2
Issue Description
My host is an Arm64 machine, but it trying to install the x86 version of the dotnet sdk.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 2022 ARM64
Relevant log output
Full task logs with system.debug enabled
Repro steps