예제 #1
0
        public WritableLaunchProfile(ILaunchProfile profile)
        {
            Name             = profile.Name;
            ExecutablePath   = profile.ExecutablePath;
            CommandName      = profile.CommandName;
            CommandLineArgs  = profile.CommandLineArgs;
            WorkingDirectory = profile.WorkingDirectory;
            LaunchBrowser    = profile.LaunchBrowser;
            LaunchUrl        = profile.LaunchUrl;
            DoNotPersist     = profile.IsInMemoryObject();

            EnvironmentVariables = profile.GetEnvironmentVariablesDictionary() ?? new(StringComparers.EnvironmentVariableNames);
            OtherSettings        = profile.GetOtherSettingsDictionary() ?? new(StringComparers.LaunchSettingsPropertyNames);
        }