From 0348dffe2673ecf05893a34fcdd29591d388277d Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 2 Feb 2016 15:58:14 -0800 Subject: [PATCH] Fix odd bug in globbing --- KoreBuild-dotnet/build/_k-standard-goals.shade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/KoreBuild-dotnet/build/_k-standard-goals.shade b/KoreBuild-dotnet/build/_k-standard-goals.shade index 530372a603..89a606cc46 100644 --- a/KoreBuild-dotnet/build/_k-standard-goals.shade +++ b/KoreBuild-dotnet/build/_k-standard-goals.shade @@ -105,7 +105,11 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json' #build-test target='compile' if='Directory.Exists("test") && !BuildSrcOnly' @{ - var projectFiles = Files.Include("test/**/project.json").ToList(); + var projectFiles = Files.Include("test/**/project.json") + // weird bug in double-star globbing can include any file ending in project.json as well + .Where(f => Path.GetFileName(f).Equals("project.json", StringComparison.OrdinalIgnoreCase)) + .ToList(); + projectFiles.ForEach(projectFile => DotnetBuild(projectFile, Configuration)); }