msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Running dotnet/performance benchmark script with arm architecture fails for preview4.

Open dakersnar opened this issue 2 years ago • 8 comments

Describe the bug

Running the benchmarks_monthly.py script for .NET preview 4 on an arm64 machine with an arm configuration crashes.

To Reproduce

git clone https://github.com/dotnet/performance.git cd performance py .\scripts\benchmarks_monthly.py net7.0-preview4 --architecture arm

Exceptions (if any)

error MSB4061: The "GenerateResource" task could not be instantiated from "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=...". Arm is not a supported architecture. [...\performance\src\benchmarks\micro\MicroBenchmarks.csproj] [2022/05/11 11:15:59][INFO] ...\performance\tools\dotnet\arm\sdk\7.0.100-preview.4.22227.3\Microsoft.Common.CurrentVersion.targets(3257,5): error MSB4060: The "GenerateResource" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [...\performance\src\benchmarks\micro\MicroBenchmarks.csproj]

Further technical details

  • The script installs the relevant .NET SDK upon running. In my run, it installed it into performance\tools\dotnet\arm\sdk\7.0.100-preview.4.22227.3.
  • This bug has been reproduced on @adamsitnik's arm machine.

dakersnar avatar May 11 '22 16:05 dakersnar

It works fine for Preview 2 and 3, so the regression has been introduced in Preview 4

adamsitnik avatar May 11 '22 16:05 adamsitnik

I can confirm the issue with preview 4 - I was able to build without issues on preview 3

gcerik avatar May 20 '22 23:05 gcerik

@BenVillalobos can you take a look? Might be dotnet/msbuild#1293.

rainersigwald avatar May 23 '22 13:05 rainersigwald

Update: this issue persists in preview5, specifically '7.0.100-preview.5.22276.3'.

dakersnar avatar May 27 '22 19:05 dakersnar

I tried the repro and see OSError: [WinError 216] This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher. Using --architecture arm64 works fine.

What version of windows are you on as you run this?

Other notes:

It installed the -Version 7.0.100-preview.4.22227.3 sdk.

Windows version of my machine: image

benvillalobos avatar Jun 10 '22 17:06 benvillalobos

@BenVillalobos I had this issue on a Raspberry PI - with Raspberry OS 32 bit installed with the 64 bit kernel

gcerik avatar Jun 13 '22 14:06 gcerik

@BenVillalobos Sorry for the delay. I'm using Windows 11 Enterprise, Version 21H2, OS build: 22000.795. I believe this has been reproduced on Windows 10 too.

dakersnar avatar Jul 18 '22 17:07 dakersnar

I can reproduce the issue with Preview5, but not with Preview7. I hope that it's gone for good ;)

adamsitnik avatar Aug 01 '22 18:08 adamsitnik