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:
authorDavid Karlaš <david.karlas@xamarin.com>2016-06-27 12:08:32 +0300
committerDavid Karlaš <david.karlas@xamarin.com>2016-06-30 19:31:30 +0300
commitcb3939bd653bd0ec03a767a375c6485a5bcbc8f2 (patch)
tree949276fd69daeb4f968ea00a4e270725236fb6d8 /main/src/core/MonoDevelop.Core
parentf095b816362085f15aa87203071851b43f505066 (diff)
Bug 41752 - I updated to Version 6.0 and it can run Console.Readline() but without any reaction which is weird
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectConfiguration.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectConfiguration.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectConfiguration.cs
index 2610230c1b..cc5f1662a0 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectConfiguration.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectConfiguration.cs
@@ -55,7 +55,13 @@ namespace MonoDevelop.Projects
outputDirectory = pset.GetPathValue ("OutputPath", defaultValue:"." + Path.DirectorySeparatorChar);
debugMode = pset.GetValue<bool> ("DebugSymbols", false);
pauseConsoleOutput = pset.GetValue ("ConsolePause", true);
- externalConsole = pset.GetValue<bool> ("ExternalConsole");
+ if (pset.HasProperty ("Externalconsole")) {//for backward compatiblity before version 6.0 it was lowercase
+ writeExternalConsoleLowercase = true;
+ externalConsole = pset.GetValue<bool> ("Externalconsole");
+ } else {
+ writeExternalConsoleLowercase = false;
+ externalConsole = pset.GetValue<bool> ("ExternalConsole");
+ }
commandLineParameters = pset.GetValue ("Commandlineparameters", "");
runWithWarnings = pset.GetValue ("RunWithWarnings", true);
@@ -111,7 +117,10 @@ namespace MonoDevelop.Projects
pset.SetValue ("OutputPath", outputDirectory, defaultValue:new FilePath ("." + Path.DirectorySeparatorChar));
pset.SetValue ("ConsolePause", pauseConsoleOutput, true);
- pset.SetValue ("ExternalConsole", externalConsole, false);
+ if (writeExternalConsoleLowercase)
+ pset.SetValue ("Externalconsole", externalConsole, false);
+ else
+ pset.SetValue ("ExternalConsole", externalConsole, false);
pset.SetValue ("Commandlineparameters", commandLineParameters, "");
pset.SetValue ("RunWithWarnings", runWithWarnings, true);
@@ -214,6 +223,7 @@ namespace MonoDevelop.Projects
set { pauseConsoleOutput = value; }
}
+ bool writeExternalConsoleLowercase = false;
bool externalConsole = false;
public bool ExternalConsole {
get { return externalConsole; }