public void AddMessage(MigrationReportMessage message)
            {
                ItemSummary item;
                string sourceName = message.SourceName ?? string.Empty;

                if (!_items.TryGetValue(sourceName, out item))
                {
                    item = new ItemSummary(sourceName, message.GeneratedItem);
                    _items.Add(sourceName, item);
                }

                item.AddMessage(message);

                if (message.Type == BuildMessageType.Error)
                {
                    _errors++;
                }
                else if (message.Type == BuildMessageType.Warning)
                {
                    _warnings++;
                }
            }
            public void AddMessage(MigrationReportMessage message)
            {
                if (message.Type == BuildMessageType.Error || message.Type == BuildMessageType.Warning)
                {
                    if (message.Type == BuildMessageType.Error)
                    {
                        _errors++;
                    }
                    else
                    {
                        _warnings++;
                    }

                    _messages.Add(string.Format("{0}: {1}", message.Type, message.Message));
                }
            }