Skip to content

Commit

Permalink
Fix official builds for NativeAOT (#91454)
Browse files Browse the repository at this point in the history
The ILLink ProjectReference output shouldn't be copied to consuming projects.

From the docs:
> Private	Optional boolean. Specifies whether the reference should be copied to the output folder. This attribute matches the Copy Local property of the reference that's in the Visual Studio IDE.
  • Loading branch information
ViktorHofer authored Sep 1, 2023
1 parent 91ac6b3 commit f470200
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eng/illink.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
</PropertyGroup>

<ItemGroup>
<!-- SkipGetTargetFrameworkProperties builds ILLink.Tasks without any TargetFramework settings
based on the referencing project, preventing errors when illink.targets is imported by a
project with TargetFrameworks that are incompatible with those of ILLink.Tasks. -->
<!-- The assembly shouldn't be referenced, nor promoted to a package dependency, nor copied to the output directory. -->
<ProjectReference Include="$(_ILLinkTasksSourceDir)ILLink.Tasks.csproj"
ReferenceOutputAssembly="false"
PrivateAssets="all"
Private="false"
SetConfiguration="Configuration=$(ToolsConfiguration)">
<!-- Keep TFMs in sync with ILLink.Tasks.csproj -->
<SetTargetFramework Condition="'$(MSBuildRuntimeType)' == 'Core'">TargetFramework=$(NetCoreAppToolCurrent)</SetTargetFramework>
Expand Down

0 comments on commit f470200

Please sign in to comment.