Fix Docker container MVID mismatch error#2845
Merged
jasontaylordev merged 1 commit intomasterfrom Feb 25, 2026
Merged
Conversation
Fixes MVID mismatch error when running the Docker container with the composite base image. The 10.0.3 package conflicts with the 8.0.x assemblies precompiled in the aspnet:8.0-noble-chiseled-composite image.
johnsimons
approved these changes
Feb 25, 2026
Member
johnsimons
left a comment
There was a problem hiding this comment.
The fix seems to be fine, but I just wonder if another possible alternative is to upgrade the runtime to v10 on the containers?
Contributor
Author
See #2847 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the MVID mismatch error when running the ServicePulse Docker container:
Root Cause
The
aspnet:8.0-noble-chiseled-compositebase image contains R2R precompiled .NET 8.0.x framework assemblies. When the app referencesMicrosoft.Extensions.FileProviders.Embeddedversion 10.0.3, there's an MVID conflict with the 8.0.x version baked into the composite image.Fix
Downgrade
Microsoft.Extensions.FileProviders.Embeddedfrom 10.0.3 to 8.0.11 to match the base image's framework version.Alternative Considered
Switching from
aspnet:8.0-noble-chiseled-compositetoaspnet:8.0-noble-chiseled(non-composite) would also work but has a slight cold-start performance penalty. The downgrade is preferred since the 10.0.3 package contains no meaningful changes for ServicePulse's use case.Testing