From 64765748106661eb621a666f168eec9ba47f8dd9 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Tue, 13 Sep 2016 16:45:04 -0700 Subject: [PATCH 1/2] Port traversal targets for cross-targeting to xplat branch Cherry pick 0a6e5f11fe3de4c5c9bf377b29b311507775e255 Conflicts: src/XMakeTasks/Microsoft.Build.Tasks.csproj --- setup/files.swr | 2 + src/XMakeTasks/Microsoft.Build.Tasks.csproj | 7 ++ src/XMakeTasks/Microsoft.CSharp.targets | 14 +++ .../Microsoft.Common.CrossTargeting.targets | 16 +++ .../Microsoft.Common.CurrentVersion.targets | 110 +++++++++++++++--- src/XMakeTasks/Microsoft.VisualBasic.targets | 14 +++ 6 files changed, 146 insertions(+), 17 deletions(-) create mode 100644 src/XMakeTasks/Microsoft.Common.CrossTargeting.targets diff --git a/setup/files.swr b/setup/files.swr index 6af9c760208..f99d202839d 100644 --- a/setup/files.swr +++ b/setup/files.swr @@ -17,6 +17,7 @@ folder InstallDir:\MSBuild\15.0\Bin file source=$(X86BinPath)System.Threading.Tasks.Dataflow.dll vs.file.ngen=yes file source=$(X86BinPath)System.Collections.Immutable.dll vs.file.ngen=yes file source=$(X86BinPath)Microsoft.Common.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.Common.CrossTargeting.targets file source=$(X86BinPath)Microsoft.Common.overridetasks file source=$(X86BinPath)Microsoft.Common.targets file source=$(X86BinPath)Microsoft.Common.tasks @@ -135,6 +136,7 @@ folder InstallDir:\MSBuild\15.0\Bin\amd64 file source=$(X86BinPath)System.Threading.Tasks.Dataflow.dll vs.file.ngen=yes file source=$(X86BinPath)System.Collections.Immutable.dll vs.file.ngen=yes file source=$(X86BinPath)Microsoft.Common.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.Common.CrossTargeting.targets file source=$(X86BinPath)Microsoft.Common.overridetasks file source=$(X86BinPath)Microsoft.Common.targets file source=$(X86BinPath)Microsoft.Common.tasks diff --git a/src/XMakeTasks/Microsoft.Build.Tasks.csproj b/src/XMakeTasks/Microsoft.Build.Tasks.csproj index 94c6b30f34b..f7985dc33b0 100644 --- a/src/XMakeTasks/Microsoft.Build.Tasks.csproj +++ b/src/XMakeTasks/Microsoft.Build.Tasks.csproj @@ -721,6 +721,10 @@ PreserveNewest + + PreserveNewest + Designer + PreserveNewest @@ -821,6 +825,9 @@ Designer + + Designer + diff --git a/src/XMakeTasks/Microsoft.CSharp.targets b/src/XMakeTasks/Microsoft.CSharp.targets index 74fe11deedf..c824b0c487b 100644 --- a/src/XMakeTasks/Microsoft.CSharp.targets +++ b/src/XMakeTasks/Microsoft.CSharp.targets @@ -17,6 +17,15 @@ Copyright (C) Microsoft Corporation. All rights reserved. + + true + + + + + + + diff --git a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets b/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets index 33fa35a9f7d..94b6a0a1486 100644 --- a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets +++ b/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets @@ -884,12 +884,12 @@ Copyright (C) Microsoft Corporation. All rights reserved. - + @@ -909,12 +909,12 @@ Copyright (C) Microsoft Corporation. All rights reserved. - + @@ -934,12 +934,12 @@ Copyright (C) Microsoft Corporation. All rights reserved. - + @@ -1487,6 +1487,81 @@ Copyright (C) Microsoft Corporation. All rights reserved. + + + + + + + + + <_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.Identity)' == '%(Identity)'"> + $(_ProjectReferenceTargetFrameworkProperties) + + + + + <_ProjectReferenceTargetFrameworkProperties /> + + + + + + + + + + AssignProjectConfiguration; + _SplitProjectReferencesByFileExistence; + _GetProjectReferenceTargetFrameworkProperties + + + + + DependsOnTargets="PrepareProjectReferences"> + + true + + +