From 4cca55069c27385aa7350d0fc4df970bfdb77964 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 2 Jan 2020 12:11:55 +0100 Subject: [AspNetCore] Default "launchBrowser" to false When we set it to false, the field is removed from launchSettings.json, so when reading it back, it needs to default to false if not present to be a correct end user experience. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1015890 --- .../MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src') diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs index 247dc9db71..4298218c7b 100644 --- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs +++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs @@ -102,7 +102,7 @@ namespace MonoDevelop.AspNetCore EnvironmentVariables.Add ("ASPNETCORE_ENVIRONMENT", "Development"); #pragma warning disable CS0618 //disables warnings threw by obsolete methods used in nameof() if (CurrentProfile.LaunchBrowser == null) - CurrentProfile.LaunchBrowser = pset.GetValue (nameof (LaunchBrowser), true); + CurrentProfile.LaunchBrowser = pset.GetValue (nameof (LaunchBrowser), false); if (string.IsNullOrEmpty (CurrentProfile.TryGetApplicationUrl ())) { if (CurrentProfile.OtherSettings == null) -- cgit v1.2.3