protected override void OnCopyFrom(ProjectRunConfiguration config, bool isRename) { base.OnCopyFrom(config, isRename); var other = (AspNetCoreRunConfiguration)config; CurrentProfile.LaunchBrowser = other.CurrentProfile.LaunchBrowser ?? true; CurrentProfile.LaunchUrl = other.CurrentProfile.LaunchUrl; var applicationUrl = other.CurrentProfile.TryGetApplicationUrl(); if (!string.IsNullOrEmpty(applicationUrl)) { if (CurrentProfile.OtherSettings == null) { CurrentProfile.OtherSettings = new Dictionary <string, object> (StringComparer.Ordinal); } CurrentProfile.OtherSettings ["applicationUrl"] = applicationUrl; } if (other.PipeTransport == null) { PipeTransport = null; } else { PipeTransport = new PipeTransportSettings(other.PipeTransport); } }
protected override void OnCopyFrom(ProjectRunConfiguration config, bool isRename) { base.OnCopyFrom(config, isRename); var other = (AspNetCoreRunConfiguration)config; LaunchBrowser = other.LaunchBrowser; LaunchUrl = other.LaunchUrl; ApplicationURL = other.ApplicationURL; if (other.PipeTransport == null) { PipeTransport = null; } else { PipeTransport = new PipeTransportSettings(other.PipeTransport); } }