From 1a514bc442a078f3d3779218664c103d77f75005 Mon Sep 17 00:00:00 2001 From: Mikayla Hutchinson Date: Tue, 13 Dec 2016 12:42:19 -0500 Subject: [PATCH] Rename cross-targeting to multi-targeting --- .../Microsoft.Build.Runtime.nuspec | 5 +- setup/files.swr | 6 + src/XMakeTasks/Microsoft.Build.Tasks.csproj | 20 ++- .../Microsoft.CSharp.CrossTargeting.targets | 12 +- .../Microsoft.CSharp.MultiTargeting.targets | 24 +++ src/XMakeTasks/Microsoft.CSharp.targets | 10 +- .../Microsoft.Common.CrossTargeting.targets | 140 +----------------- .../Microsoft.Common.CurrentVersion.targets | 8 +- .../Microsoft.Common.MultiTargeting.targets | 138 +++++++++++++++++ ...crosoft.VisualBasic.CrossTargeting.targets | 14 +- ...crosoft.VisualBasic.MultiTargeting.targets | 24 +++ src/XMakeTasks/Microsoft.VisualBasic.targets | 10 +- 12 files changed, 236 insertions(+), 175 deletions(-) create mode 100644 src/XMakeTasks/Microsoft.CSharp.MultiTargeting.targets create mode 100644 src/XMakeTasks/Microsoft.Common.MultiTargeting.targets create mode 100644 src/XMakeTasks/Microsoft.VisualBasic.MultiTargeting.targets diff --git a/build/NuGetPackages/Microsoft.Build.Runtime.nuspec b/build/NuGetPackages/Microsoft.Build.Runtime.nuspec index 67f2f319a06..4a788445153 100644 --- a/build/NuGetPackages/Microsoft.Build.Runtime.nuspec +++ b/build/NuGetPackages/Microsoft.Build.Runtime.nuspec @@ -37,12 +37,14 @@ --> + + @@ -52,6 +54,7 @@ + @@ -89,4 +92,4 @@ - \ No newline at end of file + diff --git a/setup/files.swr b/setup/files.swr index 69a155c7ab6..4a2d2f401da 100644 --- a/setup/files.swr +++ b/setup/files.swr @@ -23,11 +23,13 @@ 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.MultiTargeting.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 file source=$(X86BinPath)Microsoft.CSharp.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.CSharp.MultiTargeting.targets file source=$(X86BinPath)Microsoft.CSharp.CrossTargeting.targets file source=$(X86BinPath)Microsoft.CSharp.targets file source=$(X86BinPath)Microsoft.NetFramework.CurrentVersion.props @@ -35,6 +37,7 @@ folder InstallDir:\MSBuild\15.0\Bin file source=$(X86BinPath)Microsoft.NetFramework.props file source=$(X86BinPath)Microsoft.NetFramework.targets file source=$(X86BinPath)Microsoft.VisualBasic.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.VisualBasic.MultiTargeting.targets file source=$(X86BinPath)Microsoft.VisualBasic.CrossTargeting.targets file source=$(X86BinPath)Microsoft.VisualBasic.targets file source=$(X86BinPath)MSBuild.rsp @@ -150,11 +153,13 @@ 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.MultiTargeting.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 file source=$(X86BinPath)Microsoft.CSharp.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.CSharp.MultiTargeting.targets file source=$(X86BinPath)Microsoft.CSharp.CrossTargeting.targets file source=$(X86BinPath)Microsoft.CSharp.targets file source=$(X86BinPath)Microsoft.NetFramework.CurrentVersion.props @@ -162,6 +167,7 @@ folder InstallDir:\MSBuild\15.0\Bin\amd64 file source=$(X86BinPath)Microsoft.NetFramework.props file source=$(X86BinPath)Microsoft.NetFramework.targets file source=$(X86BinPath)Microsoft.VisualBasic.CurrentVersion.targets + file source=$(X86BinPath)Microsoft.VisualBasic.MultiTargeting.targets file source=$(X86BinPath)Microsoft.VisualBasic.CrossTargeting.targets file source=$(X86BinPath)Microsoft.VisualBasic.targets file source=$(X86BinPath)MSBuild.rsp diff --git a/src/XMakeTasks/Microsoft.Build.Tasks.csproj b/src/XMakeTasks/Microsoft.Build.Tasks.csproj index 559efc46a12..105bf973179 100644 --- a/src/XMakeTasks/Microsoft.Build.Tasks.csproj +++ b/src/XMakeTasks/Microsoft.Build.Tasks.csproj @@ -704,9 +704,6 @@ PreserveNewest Designer - - PreserveNewest - PreserveNewest @@ -730,6 +727,10 @@ PreserveNewest + + PreserveNewest + Designer + PreserveNewest Designer @@ -740,6 +741,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -755,6 +759,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -846,6 +853,9 @@ Designer + + Designer + @@ -857,9 +867,11 @@ + + $(SuiteBinPath) @@ -982,4 +994,4 @@ - \ No newline at end of file + diff --git a/src/XMakeTasks/Microsoft.CSharp.CrossTargeting.targets b/src/XMakeTasks/Microsoft.CSharp.CrossTargeting.targets index 68d1aa0797a..3418da5371a 100644 --- a/src/XMakeTasks/Microsoft.CSharp.CrossTargeting.targets +++ b/src/XMakeTasks/Microsoft.CSharp.CrossTargeting.targets @@ -10,15 +10,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. *********************************************************************************************** --> + - - - - - $(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets - - - - - + diff --git a/src/XMakeTasks/Microsoft.CSharp.MultiTargeting.targets b/src/XMakeTasks/Microsoft.CSharp.MultiTargeting.targets new file mode 100644 index 00000000000..70e44ea3e1a --- /dev/null +++ b/src/XMakeTasks/Microsoft.CSharp.MultiTargeting.targets @@ -0,0 +1,24 @@ + + + + + + + + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets + + + + + + diff --git a/src/XMakeTasks/Microsoft.CSharp.targets b/src/XMakeTasks/Microsoft.CSharp.targets index 69994d096bc..e4827c1bd49 100644 --- a/src/XMakeTasks/Microsoft.CSharp.targets +++ b/src/XMakeTasks/Microsoft.CSharp.targets @@ -17,11 +17,13 @@ Copyright (C) Microsoft Corporation. All rights reserved. + true + true @@ -49,9 +51,9 @@ Copyright (C) Microsoft Corporation. All rights reserved. $(MsBuildFrameworkToolsPath) - + - $(MSBuildToolsPath)\Microsoft.CSharp.CrossTargeting.targets + $(MSBuildToolsPath)\Microsoft.CSharp.MultiTargeting.targets diff --git a/src/XMakeTasks/Microsoft.Common.CrossTargeting.targets b/src/XMakeTasks/Microsoft.Common.CrossTargeting.targets index d4ede1aa369..df075b2f9d4 100644 --- a/src/XMakeTasks/Microsoft.Common.CrossTargeting.targets +++ b/src/XMakeTasks/Microsoft.Common.CrossTargeting.targets @@ -10,141 +10,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. *********************************************************************************************** --> - - - true - - - - - - - - - <_TargetFramework Include="$(TargetFrameworks)" /> - - - - - - - - - - - - Build - - - - - - - - - Clean - - - - - - - - Rebuild - - - - - - true - - - - - - - - true - - - - - - true - - - - - - + + + diff --git a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets b/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets index 49f35dade6e..50fa781b700 100644 --- a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets +++ b/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets @@ -1503,7 +1503,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. passing $(TargetFrameworkMoniker) as $(ReferringTargetFramework) and sets the SetTargetFramework metadata of the project reference to the value that is returned. - This allows a cross-targeting project to select how it should be configured to + This allows a multi-targeting project to select how it should be configured to build against the most appropriate target for the referring target framework. ====================================================================================== @@ -1512,7 +1512,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. Outputs="%(_MSBuildProjectReferenceExistent.Identity)"> + for easily-identifiable-as-not-multi-targeting C++ projects. --> diff --git a/src/XMakeTasks/Microsoft.Common.MultiTargeting.targets b/src/XMakeTasks/Microsoft.Common.MultiTargeting.targets new file mode 100644 index 00000000000..0a87309e456 --- /dev/null +++ b/src/XMakeTasks/Microsoft.Common.MultiTargeting.targets @@ -0,0 +1,138 @@ + + + true + + + + + + + + + <_TargetFramework Include="$(TargetFrameworks)" /> + + + + + + + + + + + + Build + + + + + + + + + Clean + + + + + + + + Rebuild + + + + + + true + + + + + + + + true + + + + + + true + + + + + + + diff --git a/src/XMakeTasks/Microsoft.VisualBasic.CrossTargeting.targets b/src/XMakeTasks/Microsoft.VisualBasic.CrossTargeting.targets index e0c0b18d373..d9b7b78a142 100644 --- a/src/XMakeTasks/Microsoft.VisualBasic.CrossTargeting.targets +++ b/src/XMakeTasks/Microsoft.VisualBasic.CrossTargeting.targets @@ -10,15 +10,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. *********************************************************************************************** --> + - - - - - $(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.VisualBasic.DesignTime.targets - - - - - - + + \ No newline at end of file diff --git a/src/XMakeTasks/Microsoft.VisualBasic.MultiTargeting.targets b/src/XMakeTasks/Microsoft.VisualBasic.MultiTargeting.targets new file mode 100644 index 00000000000..c067f35fd41 --- /dev/null +++ b/src/XMakeTasks/Microsoft.VisualBasic.MultiTargeting.targets @@ -0,0 +1,24 @@ + + + + + + + + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.VisualBasic.DesignTime.targets + + + + + + diff --git a/src/XMakeTasks/Microsoft.VisualBasic.targets b/src/XMakeTasks/Microsoft.VisualBasic.targets index c4992291b09..c323354112f 100644 --- a/src/XMakeTasks/Microsoft.VisualBasic.targets +++ b/src/XMakeTasks/Microsoft.VisualBasic.targets @@ -18,11 +18,13 @@ Copyright (C) Microsoft Corporation. All rights reserved. + true + true @@ -50,9 +52,9 @@ Copyright (C) Microsoft Corporation. All rights reserved. $(MsBuildFrameworkToolsPath) - + - $(MSBuildToolsPath)\Microsoft.VisualBasic.CrossTargeting.targets + $(MSBuildToolsPath)\Microsoft.VisualBasic.MultiTargeting.targets