Exemplo n.º 1
0
 private void HandleCompileConflict(ConflictItem conflictItem)
 {
     if (conflictItem.ItemType == ConflictItemType.Reference)
     {
         referenceConflicts.Add(conflictItem.OriginalItem);
     }
     allConflicts.Add(conflictItem);
 }
Exemplo n.º 2
0
        private ITaskItem CreateConflictTaskItem(ConflictItem conflict)
        {
            var item = new TaskItem(conflict.SourcePath);

            if (conflict.PackageId != null)
            {
                item.SetMetadata(nameof(ConflictItemType), conflict.ItemType.ToString());
            }

            return(item);
        }
 private void HandleRuntimeConflict(ConflictItem winner, ConflictItem loser)
 {
     if (loser.ItemType == ConflictItemType.Reference)
     {
         loser.OriginalItem.SetMetadata(MetadataNames.Private, "False");
     }
     else if (loser.ItemType == ConflictItemType.CopyLocal)
     {
         copyLocalConflicts.Add(loser.OriginalItem);
     }
     allConflicts.Add(loser);
 }
        private void HandleCompileConflict(ConflictItem winner, ConflictItem loser)
        {
            if (loser.ItemType == ConflictItemType.Reference)
            {
                referenceConflicts.Add(loser.OriginalItem);

                if (winner.ItemType == ConflictItemType.Platform)
                {
                    compilePlatformWinners.Add(winner);
                }
            }
            allConflicts.Add(loser);
        }
 private void HandleAnalyzerConflict(ConflictItem winner, ConflictItem loser)
 {
     analyzerConflicts.Add(loser.OriginalItem);
     allConflicts.Add(loser);
 }