Exemple #1
0
 public ChildPackageMetadata(AppxBundleMetadata parentBundle, string packageFullName, string relativePath, APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE packageType, ulong packageSize, ulong packageVersion, string packageResourceId)
 {
     this.ParentBundle     = parentBundle;
     this.RelativeFilePath = relativePath;
     this.PackageType      = (PackageType)packageType;
     this.Size             = packageSize;
     this.PackageFullName  = packageFullName;
     this.Architecture     = PackagingUtils.GetPackageArchitectureFromFullName(packageFullName);
     this.Version          = new VersionInfo(packageVersion);
     this.ResourceId       = packageResourceId;
 }
 /// <summary>
 /// Populates fields common to both appx and appxbundle files.
 /// </summary>
 protected void PopulateCommonFields()
 {
     // Populate ResourceId and Architecture
     this.Architecture = PackagingUtils.GetPackageArchitectureFromFullName(this.PackageFullName);
     this.ResourceId   = PackagingUtils.GetPackageResourceIdFromFullName(this.PackageFullName);
 }