﻿using System.ComponentModel.Composition;
using Microsoft.VisualStudio.ProjectSystem;

namespace Cosmos.VS.ProjectSystem
{
    [Export(typeof(IProjectTreePropertiesProvider))]
    [AppliesTo(ProjectCapability.Cosmos)]
    [Order(Order.OverrideManaged)]
    internal class ProjectTreePropertiesProvider : IProjectTreePropertiesProvider
    {
        public void CalculatePropertyValues(
            IProjectTreeCustomizablePropertyContext propertyContext,
            IProjectTreeCustomizablePropertyValues propertyValues)
        {
            if (propertyValues.Flags.Contains(ProjectTreeFlags.Common.ProjectRoot))
            {
                propertyValues.Icon = CosmosImagesMonikers.ProjectRootIcon.ToProjectSystemType();
            }
        }
    }
}

﻿using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Imaging;
using Microsoft.VisualStudio.ProjectSystem;

namespace Cosmos.VS.ProjectSystem
{
    [Export(typeof(IProjectTreePropertiesProvider))]
    [AppliesTo(ProjectCapability.Cosmos)]
    [Order(Order.OverrideManaged)]
    internal class ProjectTreePropertiesProvider : IProjectTreePropertiesProvider
    {
        public void CalculatePropertyValues(
            IProjectTreeCustomizablePropertyContext propertyContext,
            IProjectTreeCustomizablePropertyValues propertyValues)
        {
            if (propertyValues.Flags.Contains(ProjectTreeFlags.Common.ProjectRoot))
            {
                //propertyValues.Icon = CosmosImagesMonikers.ProjectRootIcon.ToProjectSystemType();
                propertyValues.Icon = KnownMonikers.StatusOK.ToProjectSystemType();
            }
        }
    }
}

Replace by other icon (temporary)
Replace by other icon (temporary)
