Пример #1
0
        private string GetStoreFileName(string name, string version)
        {
            try
            {
                PackageIndex.Entry entry = _index.GetEntry(name, version);
                if (entry != null && !string.IsNullOrEmpty(entry.StoreFileName))
                {
                    return(entry.StoreFileName);
                }
            }
            catch { }

            if (string.IsNullOrEmpty(version) || version == PackageIndex.Latest)
            {
                return(null);
            }

            return(_store.MakeStoreFileName(name, Version.Parse(version)));
        }
Пример #2
0
 public PackEngine.PackageInfo GetPackageInfo(string name, string version)
 {
     PackageIndex.Entry index = _index.GetEntry(name, version);
     return((index == null || !index.IsValid) ? null : index.Info);
 }