Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

Contributes to dotnet/source-build#4944

We don't have all live shims when building in VMR. The fix is to restore shared framework and apphost packs and not use the live ones, as only one architecture is available.

@NikolaMilosavljevic NikolaMilosavljevic requested review from a team and wtgodbe as code owners April 2, 2025 15:15
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 2, 2025
@NikolaMilosavljevic NikolaMilosavljevic requested review from a team, ViktorHofer and mmitche April 2, 2025 15:16
<!-- Use the same NETCore shared framework as repo built against except when building product code in servicing. -->
<KnownFrameworkReference Update="Microsoft.NETCore.App">
<!-- We cannot use live shims when building tool packs in VMR - only package for current arch is available. -->
<KnownFrameworkReference Update="Microsoft.NETCore.App" Condition=" '$(DotNetBuild)' != 'true' OR '$(PackAsToolShimRuntimeIdentifiers)' == '' ">
Copy link
Member

Choose a reason for hiding this comment

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

To confirm, PackAsToolShimRuntimeIdentifiers is usually empty, right? Because we always want to update this, except for in these tool package scenarios in the VMR

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, PackAsToolShimRuntimeIdentifiers is not set (i.e. empty) unless a specific project builds as a tool and needs to pack shims.

Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

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

LGTM other than the 1 question

@NikolaMilosavljevic NikolaMilosavljevic merged commit 80d6cf7 into dotnet:main Apr 3, 2025
27 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview4 milestone Apr 3, 2025
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.

4 participants