public override void SaveSettings(VisualStudio.IProjectSettings settings) { // TODO - Right now this class inherits from the view scaffolder model, so we need to call into the // base class to save those settings as well. We want to remove this inheritance at some point // and this method will have to change when we do. base.SaveSettings(settings); // We only want to save this value if this scaffolder uses views. // // Ex: Using the 'empty controller' scaffolder and then going back to 'Controller + EF + Views' should // not uncheck the box for you. if (IsViewGenerationSupported) { settings.SetBool(SavedSettingsKeys.IsViewGenerationSelectedKey, IsViewGenerationSelected); } if (IsAsyncSupported) { settings.SetBool(SavedSettingsKeys.IsAsyncSelectedKey, IsAsyncSelected); } }