From c346796a61de2363a27563a06426fe19500f8b17 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 2 Aug 2018 01:45:42 -0400 Subject: [PATCH] [mono] Build tasks: S.Collections.Immutable, S.Reflection.Metadata Instead of referencing the assemblies from Roslyn which can differ from what msbuild uses, use a PackageReference with the same versions as rest of msbuild. This fixes a warning: `/Users/ankit/dev/msbuild/artifacts/Release-MONO/bootstrap/net471/MSBuild/15.0/Bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3277: Found conflicts between different versions of "System.Collections.Immutable" that could not be resolved. These reference conflicts a re listed in the build log when log verbosity is set to detailed. [/Users/ankit/dev/msbuild/mono/tasks/build.csproj]` --- mono/targets/MSBuild.Bootstrap.Mono.targets | 3 ++- mono/tasks/build.csproj | 13 +++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/mono/targets/MSBuild.Bootstrap.Mono.targets b/mono/targets/MSBuild.Bootstrap.Mono.targets index 6b2bb031b19..c44dedbb446 100644 --- a/mono/targets/MSBuild.Bootstrap.Mono.targets +++ b/mono/targets/MSBuild.Bootstrap.Mono.targets @@ -42,7 +42,8 @@ + Properties="OutputPath=$(OutputPath);OutDir=$(OutDir);TargetFramework=$(TargetFramework);MonoBuild=true" + Targets="Restore;Build" /> v4.7.1 - + + - - $(OutDir)\Roslyn\System.Reflection.Metadata.dll - - - $(OutDir)\Roslyn\System.Collections.Immutable.dll - - + + +