diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2020-01-02 14:11:55 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2020-01-03 18:52:31 +0300 |
commit | 4cca55069c27385aa7350d0fc4df970bfdb77964 (patch) | |
tree | 815fcf700ce265f7a057a8182ee68c20e01a0e90 /main/src | |
parent | bb0a80ff6d4ecc8a7aedbb8e5a656e811e15a377 (diff) |
[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
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreRunConfiguration.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |