From 79a0a639b72bcb5ea55a719912a356137ceebc94 Mon Sep 17 00:00:00 2001 From: Paul Harrington Date: Thu, 30 Mar 2017 11:57:41 -0700 Subject: [PATCH] Fix #490 Rename Global.props to Directory.Build.props so it will automatically be included in every project. --- BaseIntermediateOutputPath.props | 12 ------- Common.props | 8 +++-- Global.props => Directory.Build.props | 52 ++++++++++----------------- Microsoft.ApplicationInsights.sln | 4 +-- NuGet.config | 2 +- dirs.proj | 4 --- src/Core/Managed/Core.csproj | 11 +----- src/Core/NuGet/Core.NuGet.csproj | 11 +----- 8 files changed, 28 insertions(+), 76 deletions(-) delete mode 100644 BaseIntermediateOutputPath.props rename Global.props => Directory.Build.props (75%) diff --git a/BaseIntermediateOutputPath.props b/BaseIntermediateOutputPath.props deleted file mode 100644 index bb60312498..0000000000 --- a/BaseIntermediateOutputPath.props +++ /dev/null @@ -1,12 +0,0 @@ - - - - - $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'EnlistmentRoot.marker')) - $(EnlistmentRoot)\..\obj\$(MSBuildProjectName) - $([System.IO.Path]::GetFullPath( $(BaseIntermediateOutputPath) )) - - \ No newline at end of file diff --git a/Common.props b/Common.props index c5e6978c15..13d6146f2c 100644 --- a/Common.props +++ b/Common.props @@ -1,8 +1,10 @@  - - - + + + + + prompt 4 diff --git a/Global.props b/Directory.Build.props similarity index 75% rename from Global.props rename to Directory.Build.props index 91a5c0547e..4256a693bb 100644 --- a/Global.props +++ b/Directory.Build.props @@ -1,31 +1,10 @@  - - - - + - + - - - - - - - - - - - - + @@ -37,7 +16,7 @@ - + @@ -60,36 +39,41 @@ - - + + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'EnlistmentRoot.marker')) + $(EnlistmentRoot)\..\bin $([System.IO.Path]::GetFullPath( $(BinRoot) )) + $(MSBuildProjectDirectory.Substring($(EnlistmentRoot.Length))) + $(EnlistmentRoot)\..\obj\$(MSBuildProjectName) + $([System.IO.Path]::GetFullPath( $(BaseIntermediateOutputPath) )) + Debug - + $(BinRoot)\$(Configuration)\$(RelativeOutputPathBase) $([System.IO.Path]::GetFullPath( $(OutputPath) ))\ $(BinRoot)\$(Configuration)\NuGet - + $(OutputPath) $(BaseIntermediateOutputPath)\$(Configuration)\$(RelativeOutputPathBase) $([System.IO.Path]::GetFullPath( $(IntermediateOutputPath) ))\ - + $(EnlistmentRoot)\ - + $(EnlistmentRoot)\..\packages - $([System.IO.Path]::GetFullPath( $(PackagesDir) )) + $([System.IO.Path]::GetFullPath( $(PackagesDir) )) true $(BinRoot)\$(Configuration)\ETW\ - - + true diff --git a/Microsoft.ApplicationInsights.sln b/Microsoft.ApplicationInsights.sln index b4eecc1306..be814193fd 100644 --- a/Microsoft.ApplicationInsights.sln +++ b/Microsoft.ApplicationInsights.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26228.4 +VisualStudioVersion = 15.0.26228.9 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core.Tests", "Core.Tests", "{C2FEEDE5-8CAE-41A4-8932-42D284A86EA7}" EndProject @@ -19,8 +19,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution CodeCov.ps1 = CodeCov.ps1 Common.props = Common.props Common.targets = Common.targets + Directory.Build.props = Directory.Build.props dirs.proj = dirs.proj - Global.props = Global.props GlobalStaticVersion.props = GlobalStaticVersion.props NuGet.config = NuGet.config NuGet.targets = NuGet.targets diff --git a/NuGet.config b/NuGet.config index 2a965342b0..c00ab49c9a 100644 --- a/NuGet.config +++ b/NuGet.config @@ -1,7 +1,7 @@  - + diff --git a/dirs.proj b/dirs.proj index 66c8b07f78..ac40bc5eec 100644 --- a/dirs.proj +++ b/dirs.proj @@ -1,10 +1,6 @@ - - $([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalMinutes), 5).ToString('F0')) - - diff --git a/src/Core/Managed/Core.csproj b/src/Core/Managed/Core.csproj index 7ded65b12c..a1536d0f52 100644 --- a/src/Core/Managed/Core.csproj +++ b/src/Core/Managed/Core.csproj @@ -1,10 +1,4 @@ - - - - + @@ -46,7 +40,4 @@ - - - \ No newline at end of file diff --git a/src/Core/NuGet/Core.NuGet.csproj b/src/Core/NuGet/Core.NuGet.csproj index 5f69c84d24..034f4d8636 100644 --- a/src/Core/NuGet/Core.NuGet.csproj +++ b/src/Core/NuGet/Core.NuGet.csproj @@ -1,10 +1,4 @@ - - - - + @@ -23,7 +17,4 @@ - - - \ No newline at end of file