From 398821d70ab043cbf25d04ed340a6e799221ad22 Mon Sep 17 00:00:00 2001 From: vitek-karas Date: Wed, 11 Aug 2021 08:21:13 -0700 Subject: [PATCH] Fix wrong path after the TFM change --- src/ILLink.Tasks/ILLink.Tasks.csproj | 1 + src/ILLink.Tasks/LinkTask.cs | 2 +- test/Mono.Linker.Tests/TestCasesRunner/TestCaseSandbox.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ILLink.Tasks/ILLink.Tasks.csproj b/src/ILLink.Tasks/ILLink.Tasks.csproj index 61888771f156..0ecf5d15c6c4 100644 --- a/src/ILLink.Tasks/ILLink.Tasks.csproj +++ b/src/ILLink.Tasks/ILLink.Tasks.csproj @@ -2,6 +2,7 @@ + net6.0;net472 false MSBuild tasks for running the IL Linker diff --git a/src/ILLink.Tasks/LinkTask.cs b/src/ILLink.Tasks/LinkTask.cs index 20adaf0357b4..93dfe755a4e5 100644 --- a/src/ILLink.Tasks/LinkTask.cs +++ b/src/ILLink.Tasks/LinkTask.cs @@ -253,7 +253,7 @@ public string ILLinkPath { var taskDirectory = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location); // The linker always runs on .NET Core, even when using desktop MSBuild to host ILLink.Tasks. - _illinkPath = Path.Combine (Path.GetDirectoryName (taskDirectory), "net5.0", "illink.dll"); + _illinkPath = Path.Combine (Path.GetDirectoryName (taskDirectory), "net6.0", "illink.dll"); return _illinkPath; } set => _illinkPath = value; diff --git a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseSandbox.cs b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseSandbox.cs index 98f4d95f97ec..9fc1bfa2c6a7 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseSandbox.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseSandbox.cs @@ -16,7 +16,7 @@ public class TestCaseSandbox static NPath GetArtifactsTestPath () { - // Converts paths like /root-folder/linker/artifacts/bin/Mono.Linker.Tests/Debug/net5.0/illink.dll + // Converts paths like /root-folder/linker/artifacts/bin/Mono.Linker.Tests/Debug/net6.0/illink.dll // to /root-folder/linker/artifacts/testcases/ string artifacts = Path.GetFullPath (Path.Combine (Path.GetDirectoryName (_linkerAssemblyPath), "..", "..", "..", "..")); string tests = Path.Combine (artifacts, "testcases");