internal void InitializeLaunchSettings() { if (launchProfileProvider == null) { return; } Profiles = LaunchProfileData.DeserializeProfiles(launchProfileProvider.ProfilesObject); ActiveProfile = string.Empty; if (CurrentProfile.OtherSettings == null) { CurrentProfile.OtherSettings = new Dictionary <string, object> (StringComparer.Ordinal); } if (CurrentProfile.EnvironmentVariables == null) { CurrentProfile.EnvironmentVariables = new Dictionary <string, string> (StringComparer.Ordinal); } LoadEnvVariables(); }
public void LoadLaunchSettings() { if (!File.Exists(LaunchSettingsJsonPath)) { CreateAndAddDefaultLaunchSettings(); return; } var launchSettingsJson = TryParse(); GlobalSettings.Clear(); foreach (var token in launchSettingsJson) { if (token.Key == "profiles") { ProfilesObject = token.Value as JObject; continue; } GlobalSettings.Add(token.Key, token.Value); } Profiles = new ConcurrentDictionary <string, LaunchProfileData> (LaunchProfileData.DeserializeProfiles(ProfilesObject)); }