Skip to content

Conversation

@trylek
Copy link
Member

@trylek trylek commented Apr 17, 2023

In our work on enabling composite Docker containers on Linux we hit a problem caused by the fact that the SDK uses and publishes its own version of the managed assembly

Microsoft.Extensions.Logging.Abstractions

clashing with the version of the assembly in the composite image. As we're doing our best for publishing the Docker container in Preview 4, I propose merging in this simple workaround as a stopgap change; I have created a tracking issue for fixing this cleanly by fixing SDK to start using the version of the assembly from the aspnetcore repo instead of using its own copy.

Thanks

Tomas

/cc @dotnet/crossgen-contrib

In our work on enabling composite Docker containers on Linux we
hit a problem caused by the fact that the SDK uses and publishes
its own version of the managed assembly

Microsoft.Extensions.Logging.Abstractions

clashing with the version of the assembly in the composite image.
As we're doing our best for publishing the Docker container in
Preview 4, I propose merging in this simple workaround as a
stopgap change; I have created a tracking issues for fixing this
cleanly by fixing SDK to start using the version of the assembly
from the aspnetcore repo instead of using its own copy.

Thanks

Tomas
@trylek trylek requested review from ivdiazsa, lbussell and wtgodbe April 17, 2023 15:14
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 17, 2023
Copy link
Contributor

@ivdiazsa ivdiazsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks Tomas!

@trylek trylek merged commit 4038965 into dotnet:main Apr 17, 2023
@trylek trylek deleted the CompositeWorkaround84860 branch April 17, 2023 22:43
@trylek
Copy link
Member Author

trylek commented Apr 17, 2023

@lbussell - I believe that the aspnetcore repo should run an official build later tonight or tomorrow that should produce an updated nuget with my fix, it would be great if you could give it a shot w.r.t. the docker build script, I'll try to do the same. The time is pretty tight so if there are any remaining problems, it would be great to identify them as soon as possible.

@lbussell
Copy link
Member

it would be great if you could give it a shot

Sounds good, if the build is coherent I'll give it a shot, otherwise we might have to wait until the dependency flows into installer and @ivdiazsa generates another tarball?

@ghost
Copy link

ghost commented Apr 18, 2023

Hi @lbussell. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@mangod9
Copy link
Member

mangod9 commented Apr 18, 2023

@lbussell believe the workaround is within the asp.net repo itself, and it should not cause the mvid mismatch even with build version differences, now that the M.Extensions.Logging assembly has been removed from the composite. So trying with the latest daily asp.net build should be good.

@ghost
Copy link

ghost commented Apr 18, 2023

Hi @mangod9. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@trylek
Copy link
Member Author

trylek commented Apr 18, 2023

@lbussell - I believe the latest official aspnetcore CI build succeeded and produced the tarball

aspnetcore-runtime-composite-8.0.0-preview.4.23218.4-linux-x64.tar.gz

I have downloaded the file from the official build artifacts and I have double-checked using the R2RDump tool that it indeed no longer includes the problematic assembly Microsoft.Extensions.Logging.Abstractions so it should no longer matter whether SDK uses the same or slightly different version. We have an ongoing discussion regarding the long-term fix but for now we mainly need to make sure that we're good to ship the initial composite container in Preview 4.

@ghost
Copy link

ghost commented Apr 18, 2023

Hi @trylek. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

surayya-MS pushed a commit to surayya-MS/aspnetcore that referenced this pull request Apr 20, 2023
In our work on enabling composite Docker containers on Linux we
hit a problem caused by the fact that the SDK uses and publishes
its own version of the managed assembly

Microsoft.Extensions.Logging.Abstractions

clashing with the version of the assembly in the composite image.
As we're doing our best for publishing the Docker container in
Preview 4, I propose merging in this simple workaround as a
stopgap change; I have created a tracking issues for fixing this
cleanly by fixing SDK to start using the version of the assembly
from the aspnetcore repo instead of using its own copy.

Thanks

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

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants