Repository navigation
Include shared component packages in SB artifacts - #1983
Merged
Merged
Conversation
We need both the PSB and shared components because PSB may have not been SB and so we need the portable packages it has which are compatible with the SDK being used. In the case of stage 1, we want MicrosoftNETCoreILAsmVersion to not be lifted to the version in shared components. But in stage 2, we do.
NikolaMilosavljevic
approved these changes
Aug 20, 2025
Member
Author
|
/backport to release/10.0.1xx |
Contributor
|
Started backporting to release/10.0.1xx: https://github.com/dotnet/dotnet/actions/runs/17136010299 |
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.
Contributes to #1011
In a non-1xx build, the stage 2 source-only build fails in the build of
source-build-reference-packageswith errors like the following:/__w/1/s/src/source-build-reference-packages/src/targetPacks/ILsrc/microsoft.netcore.app.ref/6.0.0/Microsoft.NETCore.App.Ref.6.0.0.csproj error NU1603: Microsoft.NETCore.App.Ref.6.0.0 depends on runtime.centos.10-x64.Microsoft.NETCore.ILAsm (>= 10.0.0-preview.7.25377.103) but runtime.centos.10-x64.Microsoft.NETCore.ILAsm 10.0.0-preview.7.25377.103 was not found. runtime.centos.10-x64.Microsoft.NETCore.ILAsm 10.0.0-rc.1.25405.108 was resolved instead. [/__w/1/s/.dotnet/sdk/10.0.200-rc.1.25408.102/NuGet.targets]The issue here is that a dependency to
runtime.centos.10-x64.Microsoft.NETCore.ILAsmis being defined targeting the version that is defined directly in the repo'sMicrosoftNETCoreILAsmVersionproperty (in this case10.0.0-preview.7.25377.103. It's not being overridden with the version that was produced by the stage 1 build (in this case10.0.0-rc.1.25405.108). It doesn't get overridden because that package is not listed in the versions props file that exists in the SB artifacts tarball produced by the stage 1 build. In fact, none of the packages which originate from the shared components are listed in there.The fix is to ensure that those properties are written. This also applies to the VersionManifest.xml file which also needs to accurately reflect this state as there are dependencies on that file as well.