Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2016-05-23 12:23:29 +0300
committerLluis Sanchez <lluis@xamarin.com>2016-05-23 12:23:29 +0300
commit3c1d718cea071790f93d6a3da143c450fb2ecbac (patch)
treec898029f618a3720522bde6f8f75e5734dd6e55d /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands
parent0e7c475aa5b43d1d43ced0039a13c901affd3e10 (diff)
Use the new api to run projects using the selected configuration
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs
index 5cf0e07f6a..05dcff507e 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs
@@ -244,9 +244,7 @@ namespace MonoDevelop.Ide.Commands
static IBuildTarget GetRunTarget ()
{
- return IdeApp.ProjectOperations.CurrentSelectedSolution != null && IdeApp.ProjectOperations.CurrentSelectedSolution.StartupItem != null ?
- IdeApp.ProjectOperations.CurrentSelectedSolution.StartupItem :
- IdeApp.ProjectOperations.CurrentSelectedBuildTarget;
+ return IdeApp.ProjectOperations.CurrentSelectedSolution ?? IdeApp.ProjectOperations.CurrentSelectedBuildTarget;
}
public static bool CanRun (IExecutionHandler executionHandler)