Skip to content

Commit d8e1ec6

Browse files
authored
Use ReferencePathWithRefAssemblies for libs ILLink (#79595)
Fixes #79513 The libraries build invokes ILLink to perform "library" mode trimming. The libraries build step is expected to be runtime agnostic and shouldn't bind against a specific CoreLib runtime implementation. During compilation, even though we have a ProjectReference pointing to the CoreLib/src project, we build against CoreLib/ref. But that ILLink invocation doesn't honor that as it uses the ReferencePath msbuild item instead of ReferencePathWithRefAssemblies.
1 parent 2d76178 commit d8e1ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/illink.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
/>
275275

276276
<ItemGroup>
277-
<_DependencyDirectoriesTemp Include="@(ReferencePath->'%(RootDir)%(Directory)')" />
277+
<_DependencyDirectoriesTemp Include="@(ReferencePathWithRefAssemblies->'%(RootDir)%(Directory)')" />
278278
<!-- Remove duplicate directories by batching over them -->
279279
<!-- Add project references first to give precedence to project-specific files -->
280280
<_DependencyDirectories Condition="'%(_DependencyDirectoriesTemp.ReferenceSourceTarget)'=='ProjectReference'" Include="%(_DependencyDirectoriesTemp.Identity)" />

0 commit comments

Comments
 (0)