Ejemplo n.º 1
0
 private PackageIdentity(string package_full_name, PACKAGE_ID package_id, PackageOrigin origin, string path)
 {
     FullName = package_full_name;
     ProcessorArchitecture = (PackageArchitecture)package_id.processorArchitecture;
     Name        = GetString(package_id.name);
     Publisher   = GetString(package_id.publisher);
     PublisherId = GetString(package_id.publisherId);
     ResourceId  = GetString(package_id.resourceId);
     Version     = new Version(package_id.version.Major, package_id.version.Minor, package_id.version.Build, package_id.version.Revision);
     Origin      = origin;
     Path        = path;
 }
Ejemplo n.º 2
0
 private PackageIdentity(string package_full_name, PACKAGE_ID package_id, PackageOrigin origin, string path, IEnumerable <string> appids)
 {
     FullName = package_full_name;
     ProcessorArchitecture = (PackageArchitecture)package_id.processorArchitecture;
     Name                = GetString(package_id.name);
     Publisher           = GetString(package_id.publisher);
     PublisherId         = GetString(package_id.publisherId);
     ResourceId          = GetString(package_id.resourceId);
     Version             = new Version(package_id.version.Major, package_id.version.Minor, package_id.version.Build, package_id.version.Revision);
     Origin              = origin;
     Path                = path;
     FamilyName          = $"{Name}_{PublisherId}";
     ApplicationModelIds = appids ?? new string[0];
 }