public void Add(ITaskItem item)
            {
                ResolveManifestFiles.MapEntry entry = new ResolveManifestFiles.MapEntry(item, true);
                string metadata = item.GetMetadata("FusionName");

                if (string.IsNullOrEmpty(metadata))
                {
                    metadata = Path.GetFileNameWithoutExtension(item.ItemSpec);
                }
                string key = metadata.ToLowerInvariant();

                if (!this.dictionary.ContainsKey(key))
                {
                    this.dictionary.Add(key, entry);
                }
                int index = metadata.IndexOf(',');

                if (index > 0)
                {
                    key = metadata.Substring(0, index).ToLowerInvariant();
                    if (!this.simpleNameDictionary.ContainsKey(key))
                    {
                        this.simpleNameDictionary.Add(key, entry);
                    }
                }
            }
 public ResolveManifestFiles.MapEntry this[string targetPath]
 {
     get
     {
         ResolveManifestFiles.MapEntry entry = null;
         string key = targetPath.ToLowerInvariant();
         this.dictionary.TryGetValue(key, out entry);
         return(entry);
     }
 }
 public ResolveManifestFiles.MapEntry this[string fusionName]
 {
     get
     {
         ResolveManifestFiles.MapEntry entry = null;
         string key = fusionName.ToLowerInvariant();
         if (!this.dictionary.TryGetValue(key, out entry))
         {
             this.simpleNameDictionary.TryGetValue(key, out entry);
         }
         return(entry);
     }
 }
            public void Add(ITaskItem item, bool includedByDefault)
            {
                string itemTargetPath = ResolveManifestFiles.GetItemTargetPath(item);

                if (!string.IsNullOrEmpty(itemTargetPath))
                {
                    string key = itemTargetPath.ToLowerInvariant();
                    ResolveManifestFiles.MapEntry entry = new ResolveManifestFiles.MapEntry(item, includedByDefault);
                    if (!this.dictionary.ContainsKey(key))
                    {
                        this.dictionary.Add(key, entry);
                    }
                }
            }
 public void Add(ITaskItem item, bool includedByDefault)
 {
     string itemTargetPath = ResolveManifestFiles.GetItemTargetPath(item);
     if (!string.IsNullOrEmpty(itemTargetPath))
     {
         string key = itemTargetPath.ToLowerInvariant();
         ResolveManifestFiles.MapEntry entry = new ResolveManifestFiles.MapEntry(item, includedByDefault);
         if (!this.dictionary.ContainsKey(key))
         {
             this.dictionary.Add(key, entry);
         }
     }
 }
 public void Add(ITaskItem item)
 {
     ResolveManifestFiles.MapEntry entry = new ResolveManifestFiles.MapEntry(item, true);
     string metadata = item.GetMetadata("FusionName");
     if (string.IsNullOrEmpty(metadata))
     {
         metadata = Path.GetFileNameWithoutExtension(item.ItemSpec);
     }
     string key = metadata.ToLowerInvariant();
     if (!this.dictionary.ContainsKey(key))
     {
         this.dictionary.Add(key, entry);
     }
     int index = metadata.IndexOf(',');
     if (index > 0)
     {
         key = metadata.Substring(0, index).ToLowerInvariant();
         if (!this.simpleNameDictionary.ContainsKey(key))
         {
             this.simpleNameDictionary.Add(key, entry);
         }
     }
 }