예제 #1
0
        public string ToHtml()
        {
            string upDescription = string.Empty;
            string rpDescription = string.Empty;

            if (UniqueProperties.Any())
            {
                upDescription = $"<div class=\"uniqueproperties\"><table><tr><td>{string.Join("</td></tr><tr><td>", UniqueProperties.Select(up => $"{up.Name}</td><td>{((up.Name == "CurrentSolutionConfigurationContents" || up.Name == "RestoreGraphProjectInput") ? "{elided}" : up.Value)}"))}</td></tr></table></div>";
            }

            if (RemovedProperties.Any())
            {
                rpDescription = $"<div class=\"removedproperties\">{string.Join("; ", RemovedProperties.Select(rp => rp.Key))}</div>";
            }

            return
                ($"<h3>{StartedEventArgs.ProjectFile}</h3><br />{upDescription}{rpDescription}");
        }
예제 #2
0
        public override string ToString()
        {
            string upDescription = string.Empty;
            string rpDescription = string.Empty;

            if (UniqueProperties.Any())
            {
                upDescription = $" + <{string.Join("; ", UniqueProperties.Select(up => $"{up.Name} = {((up.Name == "CurrentSolutionConfigurationContents" || up.Name == "RestoreGraphProjectInput") ? "{elided}" : up.Value)}"))}>";
            }

            if (RemovedProperties.Any())
            {
                rpDescription = $" - <{string.Join("; ", RemovedProperties.Select(rp => rp.Key))}>";
            }

            return
                ($"{{{ProjectInstanceId}: \"{StartedEventArgs.ProjectFile}\"{upDescription}{rpDescription}}}");
        }