From 58d167f3e516163c0aeca2b92592d6f336dc27f3 Mon Sep 17 00:00:00 2001 From: Justin Goshi Date: Thu, 16 Feb 2017 12:21:15 -0800 Subject: [PATCH 1/2] Refactor properties out of Compile.targets --- Microsoft.DotNet.Cli.sln | 1 + build/BuildOutputs.props | 7 +++++++ build/Compile.targets | 27 --------------------------- build/InputDirectories.props | 3 +++ build/OutputDirectories.props | 5 +++++ dir.props | 6 ++++-- 6 files changed, 20 insertions(+), 29 deletions(-) create mode 100644 build/BuildOutputs.props diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln index ad1c9b9a5..b7f28f54a 100644 --- a/Microsoft.DotNet.Cli.sln +++ b/Microsoft.DotNet.Cli.sln @@ -27,6 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4 build\Branding.props = build\Branding.props build\BranchInfo.props = build\BranchInfo.props build\BuildDefaults.props = build\BuildDefaults.props + build\BuildOutputs.props = build\BuildOutputs.props build\BundledSdks.proj = build\BundledSdks.proj build\Microsoft.DotNet.Cli.BundledRuntimes.props = build\Microsoft.DotNet.Cli.BundledRuntimes.props build\BundledSdks.props = build\BundledSdks.props diff --git a/build/BuildOutputs.props b/build/BuildOutputs.props new file mode 100644 index 000000000..987769037 --- /dev/null +++ b/build/BuildOutputs.props @@ -0,0 +1,7 @@ + + + dotnet$(ExeExtension) + $(DynamicLibPrefix)hostfxr$(DynamicLibSuffix) + $(DynamicLibPrefix)hostpolicy$(DynamicLibSuffix) + + diff --git a/build/Compile.targets b/build/Compile.targets index b32af2e07..6b6027af4 100644 --- a/build/Compile.targets +++ b/build/Compile.targets @@ -3,11 +3,6 @@ - - runtimes/any/native - $(RepoRoot)/resources/MSBuildImports - - @@ -23,28 +18,6 @@ - - $(RepoRoot)/src - - lib - - .dll - .dylib - .so - - dotnet$(ExeExtension) - $(DynamicLibPrefix)hostfxr$(DynamicLibSuffix) - $(DynamicLibPrefix)hostpolicy$(DynamicLibSuffix) - - $(Stage2Directory) - $(Stage2SymbolsDirectory) - $(StageDirectory)/sdk/$(SdkVersion) - $(SdkOutputDirectory)/$(BinaryToCorehostifyRelDir) - $(SdkOutputDirectory)/runtimes/any/native - - $(StageDirectory)/shared/$(SharedFrameworkName)/$(SharedFrameworkVersion) - - diff --git a/build/InputDirectories.props b/build/InputDirectories.props index bbb344d0a..9bfeadb3a 100644 --- a/build/InputDirectories.props +++ b/build/InputDirectories.props @@ -1,5 +1,8 @@ + runtimes/any/native $(RepoRoot)/build_projects/dotnet-cli-build + $(RepoRoot)/resources/MSBuildImports + $(RepoRoot)/src diff --git a/build/OutputDirectories.props b/build/OutputDirectories.props index e43b33a84..9be5c2c97 100644 --- a/build/OutputDirectories.props +++ b/build/OutputDirectories.props @@ -10,8 +10,13 @@ $(Stage2Directory)/dotnet$(ExeExtension) $(Stage2Directory)/ $(BaseOutputDirectory)/stage2compilation + $(Stage2Directory) + $(Stage2SymbolsDirectory) + $(StageDirectory)/sdk/$(SdkVersion) + $(SdkOutputDirectory)/runtimes/any/native $(BaseOutputDirectory)/intermediate $(BaseOutputDirectory)/packages $(IntermediateDirectory)/sharedFrameworkPublish + $(StageDirectory)/shared/$(SharedFrameworkName)/$(SharedFrameworkVersion) diff --git a/dir.props b/dir.props index 8425f4625..c7b1bab48 100644 --- a/dir.props +++ b/dir.props @@ -12,13 +12,15 @@ + + + + - - From 23a3879f468f781dfa76102588550c0b31327d29 Mon Sep 17 00:00:00 2001 From: Justin Goshi Date: Thu, 16 Feb 2017 16:42:49 -0800 Subject: [PATCH 2/2] Fix build break --- build/BuildOutputs.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/BuildOutputs.props b/build/BuildOutputs.props index 987769037..d332ec429 100644 --- a/build/BuildOutputs.props +++ b/build/BuildOutputs.props @@ -1,7 +1,7 @@ dotnet$(ExeExtension) - $(DynamicLibPrefix)hostfxr$(DynamicLibSuffix) - $(DynamicLibPrefix)hostpolicy$(DynamicLibSuffix) + $(DynamicLibPrefix)hostfxr$(DynamicLibExtension) + $(DynamicLibPrefix)hostpolicy$(DynamicLibExtension)