Skip to content

Dependency changes when building a self contained application in SDK version 8.0.303 to 8.0.401 #108354

Description

Describe the bug

The library depedencies of our self-contained dotnet application change when building with version 8.0.401 instead of 8.0.303. As far as I can tell this should not be possible since it is a minor version change.

To Reproduce

We reproduce the issue by building our application with the follow command:

dotnet publish TestApplication/TestApplication.csproj -c Release -p:Version=$VERSION -o $CI_PROJECT_DIR/out/ -r linux-arm /p:PublishTrimmed=true --self-contained /p:PublishSingleFile=true -f net6.0

The docker image used is mcr.microsoft.com/dotnet/sdk:8.0. This image contains SDK version 8.0.401.

When running the application on our Linux device, we run into the following error:
./TestApplication: /lib/libc.so.6: version 'GLIBC_2.27' not found (required by ./TestApplication)

But when we build with image: mcr.microsoft.com/dotnet/sdk@sha256:e9f45219cca08134f09cb973de3e8364d5a22ad30dfff1343830003c6494a735 This error does NOT occur, this image uses SDK version 8.0.303.

It is not easily reproduce able since it is a non-public Linux distribution. Let me know if any more information is required.

Further technical details

  • output of uname -a on our device: Linux FX96006B9E16 4.9.182-rt131-yocto-standard dotnet/sdk#1 PREEMPT Mon Aug 14 11:47:31 IST 2023 armv7l GNU/Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions