public void ExtractDataFromManifest(string path, bool isOptional = false)
        {
            string manifest    = GetManifestFromAppVFile(path);
            string packageId   = GetPackageId(manifest);
            string versionId   = GetVersionId(manifest);
            string displayName = GetDisplayName(manifest);

            PackagesList.Add(new AppVPackage(packageId, versionId, displayName, isOptional, path));
        }
Example #2
0
        private void LoadPackages()
        {
            PackagesList.Clear();

            foreach (XmlNode packageNode in _root.GetElementsByTagName("package"))
            {
                var item = new PackageItemDocument(packageNode);

                if (item.HasVersion)
                {
                    PackagesList.Add(item);
                }
            }

            RaisePropertyChanged(nameof(PackagesList));
        }