Skip to content

Emulated x86 and x64 .NET 8 on AARCH64 can't restore project #97228

@kurt-mueller-osumc

Description

@kurt-mueller-osumc

Description

Similar to #71856, on arm64 computer (i.e. macbook pro) when targeting the linux/amd64 platform during a docker build, commands like dotnet restore will hang indefinitely.

The only way to rectify this is be setting the DOTNET_EnableWriteXorExecute=0 environment variable. However, this cause the docker container to respond slowly (I use the docker container as a dev environment).

A simple repo with this reproduced is found here:

https://github.com/kurt-mueller-osumc/dotnet-amd64/tree/main

Reproduction Steps

  1. Be on an arm64 computer like a macbook pro.
  2. Clone this repo: https://github.com/kurt-mueller-osumc/dotnet-amd64/tree/main
  3. Run the command docker build --platform linux/amd64 .

Expected behavior

Ideally, dotnet restore should simply work :).

Actual behavior

dotnet restore hangs.

Regression?

No response

Known Workarounds

Add this line to the Dockerfile:

ENV DOTNET_EnableWriteXorExecute=0

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions