From 0be72a55846abaf74e48a5b829e272077b108f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 7 Sep 2021 20:24:58 +0200 Subject: [PATCH] Change namespace of embedded Cecil in ILStrip task We hit a case where the ILStrip task assembly is IL-merged with a few other task assemblies on the Xamarin side which causes a clash because of trying to merge different Mono.Cecil versions. Rename the Mono.Cecil used here to avoid that clash. Brings in https://github.com/dotnet/runtime-assets/pull/169 --- eng/Version.Details.xml | 4 ++-- eng/Versions.props | 2 +- src/tasks/ILStripTask/ILStrip.cs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index fcd72d13f293ab..60aac91867a468 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -122,9 +122,9 @@ https://github.com/dotnet/runtime-assets d6c7cf7d70f2f6a61c22c494aedb9c18de85ad53 - + https://github.com/dotnet/runtime-assets - d6c7cf7d70f2f6a61c22c494aedb9c18de85ad53 + 1d113f16de55a39b39a3389f09c243cb6c44199b https://github.com/dotnet/llvm-project diff --git a/eng/Versions.props b/eng/Versions.props index 7eb456c824dfb6..b51c121fccc03b 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -125,7 +125,7 @@ 7.0.0-beta.21430.2 7.0.0-beta.21430.2 7.0.0-beta.21430.2 - 7.0.0-beta.21430.2 + 7.0.0-beta.21457.4 1.0.0-prerelease.21455.2 1.0.0-prerelease.21455.2 diff --git a/src/tasks/ILStripTask/ILStrip.cs b/src/tasks/ILStripTask/ILStrip.cs index 7ce5a5ecc07cf1..8086e68b91785f 100644 --- a/src/tasks/ILStripTask/ILStrip.cs +++ b/src/tasks/ILStripTask/ILStrip.cs @@ -8,10 +8,10 @@ using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Mono.Cecil; -using Mono.Cecil.Binary; -using Mono.Cecil.Cil; -using Mono.Cecil.Metadata; +using CilStrip.Mono.Cecil; +using CilStrip.Mono.Cecil.Binary; +using CilStrip.Mono.Cecil.Cil; +using CilStrip.Mono.Cecil.Metadata; public class ILStrip : Microsoft.Build.Utilities.Task {