diff options
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs | 10 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs index ea8f0b4273..c9373afb86 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/RemoteBuildEngineManager.cs @@ -1,4 +1,4 @@ -// +// // RemoteBuildEngineManager.cs // // Author: @@ -609,12 +609,12 @@ namespace MonoDevelop.Projects.MSBuild spid = spid.Substring (0, i); int pid; if (int.TryParse (Path.GetFileName (spid), out pid)) { - try { - // If there is a process running with this id it means the builder is still being used - if (Process.GetProcessById (pid) != null) + try {
+ // If there is a process running with this id it means the builder is still being used
+ if (Process.GetProcessById (pid) != null)
continue; } catch { - // Ignore + // Ignore
} // No process for this id, it should be safe to delete the folder try { diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs index 46768a95f0..6b0b36c660 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs @@ -115,7 +115,7 @@ namespace MonoDevelop.Projects.MSBuild resolvers.AddRange (assembly.ExportedTypes .Select (type => new { type, info = type.GetTypeInfo () }) - .Where (t => t.info.IsClass && t.info.IsPublic && typeof (SdkResolver).IsAssignableFrom (t.type)) + .Where (t => t.info.IsClass && t.info.IsPublic && !t.info.IsAbstract && typeof (SdkResolver).IsAssignableFrom (t.type)) .Select (t => (SdkResolver)Activator.CreateInstance (t.type))); } catch (Exception e) { logger.LogWarning (e.Message); |