From dc7b2d088349eeb877adef2ed7f3f63fb6afc31e Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Fri, 28 Jul 2017 16:15:49 -0700 Subject: [PATCH] Respect ExcludeSolutions when calculating the build graph --- build/repo.targets | 16 +++++++++++----- .../BuildGraph/DependencyGraphSpecProvider.cs | 6 ++++++ build/tasks/BuildGraph/Repository.cs | 5 +++++ 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/build/repo.targets b/build/repo.targets index 4c14089f27..aeed856381 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -110,13 +110,19 @@ DependsOnTargets="_PrepareRepositories;_CreateRepositoriesListWithCommits;_UpdateNuGetConfig;_GenerateBuildGraph;_BuildRepositories" /> - - - %(Repository.Identity) - + + + + + + + - RestoreGraphOutputPath=$(_RestoreGraphSpecsDirectory)%(Solution.Repository)\%(Solution.FileName)%(Solution.Extension).json + RestoreGraphOutputPath=$(_RestoreGraphSpecsDirectory)$([System.IO.Path]::GetFileName('$([System.IO.Path]::GetDirectoryName(%(FullPath)))'))\%(Solution.FileName)%(Solution.Extension).json p.RestoreMetadata.ProjectStyle == ProjectStyle.PackageReference ? 0 : 1); foreach (var specProject in projects) {