Make package resource index (MakePRI.exe)

MakePRI.exe is a command-line tool used for creating and dumping package resource index (PRI) files and for performing utility functions on them.

MakePRI provides the following subcommands and functions.

Command

Description

makepri createconfig Creates a PRI configuration file for use with other commands
makepri new Creates a new PRI file from scratch
makepri versioned Creates a PRI file that's based on a previous version
makepri resourcepack Creates a PRI file that contains additional resource variants for a base PRI
makepri dump Dumps the contents of a PRI file

makepri createconfig

MakePRI.exe createconfig creates a PRI configuration file at the [config file destination], with default qualifiers specified by the [default qualifiers].

makepri createconfig /cf <filepath> /dq <qualifiers> [/o]

Option

Description

/cf <filepath> Configuration file's output location. Example:
/cf C:\MyApp\priconfig.xml
/dq <qualifiers> Default qualifier set in the configuration file. Some qualifiers are required, such as the language. Example:
/dq en-US

Multiple qualifiers are separated by underscores. Example:

lang-en-US_scale-100_contrast-high

/o Overwrites an existing output file of the same name, without prompting.

Return to the top of this topic.

makepri new

MakePRI.exe new creates a PRI file at [outputfile] by indexing all files in [projectroot] and its subdirectories, as directed by [configxml]. The index will be assigned [indexname] to reference resources in the application.

makepri new /pr <folderpath> /cf <filepath> [/of <filepath>] [/mn <filepath>] [/in <string>] [/vma <integer>] [/il <filepath>] [/am] [/o] [/v]

Option

Description

/pr <folderpath> Root location of project files. Example:
/pr C:\MyApp\src\
/cf <filepath> Configuration file's location. Use the makepri createconfig command to generate this file. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of the PRI file. The default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/mn <filepath> Location of the application's or component's manifest. This parameter is ignored if [indexname] is specified. The default is [projectroot]\AppXManifest.xml.
/in <string> Name of the generated index of resources. For example, usually matches the AppX package's name and the class library's simple name. Can be supplied via the [manifest] parameter.
/vma <integer> Major version number for index. The default is 1.
/il <filepath> XML log of indexed resources. No log file is generated by default.
/am Causes MakePRI.exe to set the auto-merge flag within the PRI file. The default isn't set.

We don't recommend this flag for normal use with AppX packages.

/o Overwrites an existing output file of the same name, without prompting.
/v Causes verbose messages to be displayed on the console.

Return to the top of this topic.

makepri versioned

MakePRI.exe versioned creates a versioned PRI file at [outputfile] by indexing all files in [projectroot] and its subdirectories according to [indexfile] and as directed by [configxml].

makepri versioned /pr <folderpath> /cf <filepath> [/of <filepath>] [/if <filepath>] [/il <filepath>] [/am] [/o] [/v]

Option

Description

/pr <folderpath> Root location of project files. Example:
/pr C:\MyApp\src\
/cf <filepath> Configuration file's output location. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of the PRI file. The default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. The default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/il <filepath> XML log of indexed resources. No log file is generated by default.
/am Causes MakePRI.exe to set the auto-merge flag within the PRI file. By default, it's set to the same value as that of the base PRI file.

We don't recommend this flag for normal use with AppX packages.

/o Overwrites an existing output file of the same name, without prompting.
/v Causes verbose messages to be displayed on the console.

Return to the top of this topic.

makepri resourcepack

MakePRI.exe resourcepack creates a PRI file at [outputfile] by indexing all files in [projectroot] and its subdirectories, as directed by [configxml]. ResourcePack PRI files contain only additional variants of resources already specified in [indexfile].

makepri resourcepack /pr <folderpath> /cf <filepath> [/of <filepath>] [/if <filepath>] [/il <filepath>] [/am] [/o] [/v]

Option

Description

/pr <folderpath> Root location of project files. Example:
/pr C:\MyApp\src\
/cf <filepath> Configuration file's output location. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of the PRI file. The default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. The default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/il <filepath> XML log of indexed resources. No log file is generated by default.
/am Causes MakePRI.exe to set the auto-merge flag within the PRI file. By default, it's set to the same value as that of the base PRI file.

We don't recommend this flag for normal use with AppX packages.

/o Overwrites an existing output file of the same name, without prompting.
/v Causes verbose messages to be displayed on the console.

Return to the top of this topic.

makepri dump

MakePRI.exe dump outputs a dumped xml file at [outputfile] containing a list of all resources in [indexfile].

makepri dump [/of <filepath>] [/if <filepath>] [/dt <string>] [/o] [/v]

Option

Description

/of <filepath> Output location of the PRI file. The default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. The default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/dt <string> Format of the dumped file: "Basic" (default) or "Detailed".
/o Overwrites an existing output file of the same name, without prompting.
/v Causes verbose messages to be displayed on the console.

Return to the top of this topic.

See also

Make package (makepkg.exe)