Inheritance: IManifestReader
示例#1
0
        private void ReadManifest()
        {
            var filePath = Path.Combine(m_unpackPath, ManifestFileName);

            if (!File.Exists(filePath))
            {
                throw new FileNotFoundException("Manifest file was not found. Check whether you specified valid application.");
            }

            ManifestReader reader = new ManifestReader(filePath);

            ProductId          = reader.GetProductId();
            Title              = reader.GetTitle();
            Version            = reader.GetVersion();
            Author             = reader.GetAuthor();
            Capabilities       = reader.GetCapabilities();
            Requirements       = reader.GetRequirements();
            PlatformVersion    = reader.GetAppPlatformVersion();
            ScreenResolutions  = reader.GetScreenResolutions();
            SupportedFileTypes = reader.GetSupportedFileTypes();
            AssociatedURIs     = reader.GetAssociatedURIs();
        }
示例#2
0
        private void ReadManifest()
        {
            var filePath = Path.Combine(m_unpackPath, ManifestFileName);
            if (!File.Exists(filePath))
            {
                throw new FileNotFoundException("Manifest file was not found. Check whether you specified valid application.");
            }

            ManifestReader reader = new ManifestReader(filePath);
            ProductId = reader.GetProductId();
            Title = reader.GetTitle();
            Version = reader.GetVersion();
            Author = reader.GetAuthor();
            Capabilities = reader.GetCapabilities();
            Requirements = reader.GetRequirements();
            PlatformVersion = reader.GetAppPlatformVersion();
            ScreenResolutions = reader.GetScreenResolutions();
            SupportedFileTypes = reader.GetSupportedFileTypes();
            AssociatedURIs = reader.GetAssociatedURIs();
        }