From fb273d12354cab0cd7e4e27efc1a05e453e69314 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Tue, 21 Aug 2018 11:57:35 +0100 Subject: [Ide] Fix project not being run when it has warnings With "Run project if build completed with warnings" set to true in Preferences a project would not be run if the build had warnings. The preferences setting had the opposite effect since it was being treated as though it indicated the run should be cancelled when it was true. Fixes VSTS #667156 - [VSM] Project is not built and started to run after Toolbar -> Run hit --- main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs index 442ac0a0ec..02e078d717 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs @@ -1388,7 +1388,7 @@ namespace MonoDevelop.Ide return CheckAndBuildForExecute ( buildTargets, configuration, - IdeApp.Preferences.BuildBeforeExecuting, IdeApp.Preferences.RunWithWarnings, + IdeApp.Preferences.BuildBeforeExecuting, !IdeApp.Preferences.RunWithWarnings, (target, monitor) => { if (target is IRunTarget runTarget) { var projectRunConfig = GetProjectRunConfiguration (runTarget, runConfiguration); -- cgit v1.2.3