You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded my Docker containers to NET 7 from NET 6 and I'm not able to deploy arm versions of them.
If I build using FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy everything works fine, while if I build using FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy-arm64v8 I get the following error:
> [build 5/8] RUN dotnet restore "MyProject/MyProject.csproj":#13 8.261 /usr/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(54,5): error MSB4184: The expression "[MSBuild]::GetTargetFrameworkIdentifier(net7.0)" cannot be evaluated. Exception has been thrown by the target of an invocation. [/src/MyProject/MyProject.csproj]
I'd like to underline that if I switch back to sdk:6.0-focal-arm64v8 everything works fine.
For more details, I'm building a self-contained app targeting linux-arm64:
[...]
RUN dotnet build "MyProject.csproj" -c Release -r linux-arm64 -p:PublishReadyToRun=true -p:Optimize=True --self-contained=True -o /app/build
FROM build AS publish
RUN dotnet publish "MyProject.csproj" -c Release -r linux-arm64 -p:PublishReadyToRun=true -p:Optimize=True --self-contained=True -o /app/publish
[...]
Steps to Reproduce
Try do deploy a NET 7 docker container for a self-contained app targeting linux-arm64
Describe the Bug
I just upgraded my Docker containers to NET 7 from NET 6 and I'm not able to deploy arm versions of them.
If I build using
FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy
everything works fine, while if I build usingFROM mcr.microsoft.com/dotnet/sdk:7.0-jammy-arm64v8
I get the following error:> [build 5/8] RUN dotnet restore "MyProject/MyProject.csproj":#13 8.261 /usr/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(54,5): error MSB4184: The expression "[MSBuild]::GetTargetFrameworkIdentifier(net7.0)" cannot be evaluated. Exception has been thrown by the target of an invocation. [/src/MyProject/MyProject.csproj]
I'd like to underline that if I switch back to sdk:6.0-focal-arm64v8 everything works fine.
For more details, I'm building a self-contained app targeting linux-arm64:
Steps to Reproduce
Other Information
Output of
docker version
Output of
docker info
The text was updated successfully, but these errors were encountered: