diff options
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs index 8e410566aa..17e451e828 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs @@ -1413,17 +1413,16 @@ namespace MonoDevelop.Projects.MSBuild var pi = (ProjectInfo)projectInstance; string filePath = MSBuildProjectService.FromMSBuildPath (pi.Project.BaseDirectory, include); foreach (var g in pi.GlobIncludes.Where (g => g.Condition)) { - if (IsIncludedInGlob (g.Include, pi.Project.BaseDirectory, filePath)) { - if (g.ExcludeRegex != null) { - if (g.ExcludeRegex.IsMatch (include)) - continue; - } - if (g.RemoveRegex != null) { - if (g.RemoveRegex.IsMatch (include)) - continue; - } - yield return g.Item; + if (g.ExcludeRegex != null) { + if (g.ExcludeRegex.IsMatch (include)) + continue; } + if (g.RemoveRegex != null) { + if (g.RemoveRegex.IsMatch (include)) + continue; + } + if (IsIncludedInGlob (g.Include, pi.Project.BaseDirectory, filePath)) + yield return g.Item; } } |