EnvDTE.Client/Impl/ProjectModelImpl/ConfigurationImpl/ProjectActiveConfigurationImplementation.cs (38 lines of code) (raw):
using System;
using EnvDTE;
using JetBrains.Annotations;
using JetBrains.EnvDTE.Client.Impl.ProjectModelImpl.PropertyImpl;
using JetBrains.Rider.Model;
namespace JetBrains.EnvDTE.Client.Impl.ProjectModelImpl.ConfigurationImpl;
public class ProjectActiveConfigurationImplementation(
[NotNull] DteImplementation dte,
[NotNull] ConfigurationManagerImplementation parent,
[NotNull] ProjectItemModel parentItemModel)
: Configuration
{
[CanBeNull] private ConfigurationPropertiesImplementation _properties;
public DTE DTE => dte;
public ConfigurationManager Collection => parent;
public object Object => this;
public object Owner => parent.Parent;
public vsConfigurationType Type => vsConfigurationType.vsConfigurationTypeProject;
public string ConfigurationName => dte.DteProtocolModel.Project_get_ActiveConfigName.Sync(new (parentItemModel));
public string PlatformName => dte.DteProtocolModel.Project_get_ActiveConfigPlatformName.Sync(new (parentItemModel));
public Properties Properties
{
get
{
_properties ??= new ConfigurationPropertiesImplementation(dte, this, parentItemModel);
return _properties;
}
}
public bool IsBuildable => dte.DteProtocolModel.Project_get_IsBuildable.Sync(new (parentItemModel));
public bool IsDeployable => dte.DteProtocolModel.Project_get_IsDeployable.Sync(new (parentItemModel));
#region NotImplemented
public bool IsRunable => throw new NotImplementedException();
public object ExtenderNames => throw new NotImplementedException();
public string ExtenderCATID => throw new NotImplementedException();
public OutputGroups OutputGroups => throw new NotImplementedException();
public object get_Extender(string extenderName) => throw new NotImplementedException();
#endregion
}