Clean up dead code in illink targets (#85741)
authorSven Boemer <sbomer@gmail.com>
Tue, 16 May 2023 20:36:48 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 20:36:48 +0000 (13:36 -0700)
commit0cfc81d8d09adf758096349a923bed01a253be4d
treed538055d5622ae5b4999011b62d2e9aa52f8a46d
parentddd748e16417bd1ddcf1094b0a63793a60408cfb
Clean up dead code in illink targets (#85741)

Removes TFM version checks, and adds a warning when using
explicit ILLink package reference.

We reference ILLink as a packagereference that versions with the
runtime, so the 8.0 linker is only supported when targeting
`net8.0`, and we can remove the TFM checks. We don't want to
support someone adding a PackageReference to an 8.0 linker, while
targeting an older TFM, in an attempt to get newer linker bits
but with settings that were closer to what we shipped with that
TFM.

---------

Co-authored-by: Marek Safar <marek.safar@gmail.com>
Co-authored-by: Vitek Karas <10670590+vitek-karas@users.noreply.github.com>
src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj
src/tools/illink/src/ILLink.Tasks/build/6.0_suppressions.xml [deleted file]
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets