diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2016-09-06 11:11:37 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2016-09-06 11:14:35 +0300 |
commit | be9ce4df6234ab02358035eb0effeedbaecccc70 (patch) | |
tree | 0abb372153d2b665b695c86f77b507fb244c2989 | |
parent | 5bf86d19323c7b27c246f29e2c5c13b0248c0c25 (diff) |
Fix bug 44009 - Running a solution builds the whole solution
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs index 2402e72d21..de4417cf49 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs @@ -1243,6 +1243,13 @@ namespace MonoDevelop.Ide return false; var buildTarget = executionTarget; + + // When executing a solution we are actually going to execute the starup project. So we only need to build that project. + // TODO: handle multi-startup solutions. + var sol = buildTarget as Solution; + if (sol != null && sol.StartupItem != null) + buildTarget = sol.StartupItem; + var buildDeps = buildTarget.GetExecutionDependencies ().ToList (); if (buildDeps.Count > 1) throw new NotImplementedException ("Multiple execution dependencies not yet supported"); |