diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-06-18 03:22:42 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-06-20 05:09:11 +0300 |
commit | 47742270cbf8bc51864658484a7fdc378f6f53a9 (patch) | |
tree | 49a6a2703d741d610b414598dca496e1a4767566 /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs | |
parent | a711ab2bb6e778873bea579fd3b27e2cdd666611 (diff) |
Initial work towards optimizing FileService handlers
Fixes VSTS #853896 - [Feedback] Visual Studio freezes when i run mono
Fixes VSTS #902435 - Investigate performance issue with FileSystemWatcher
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs | 5 |
1 files changed, 4 insertions, 1 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 0cc36a1f0e..49f790ef94 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/DefaultMSBuildEngine.cs @@ -1435,7 +1435,10 @@ 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)) { + foreach (var g in pi.GlobIncludes) { + if (!g.Condition) + continue; + if (g.ExcludeRegex != null) { if (g.ExcludeRegex.IsMatch (include)) continue; |