Make Package Resource Index (makepri.exe)

MakePRI.exe is a command line tool used for creating, dumping, and performing utility functions on Package Resource Index (PRI) files.

MakePRI provides the subcommands and functions described in the following table.

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 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

Creates a PRI configuration file at [config file destination] with default qualifiers specified by [default qualifiers].

makepri createconfig /cf <filepath> /dq <qualifiers> [/o]
Option Description
/cf <filepath> Configuration file output location. Example:
/cf C:\MyApp\priconfig.xml
/dq <qualifiers> Default qualifier set in the configuration file. Some qualifiers are required, such as language. Example:
/dq en-US
Note
Multiple qualifiers are separated by underscores. Example:
lang-en-US_scale-100_contrast-high
/o Overwrite an existing output file of the same name without prompting.

Return to the top of this topic.

makepri new

Creates a PRI file at [outputfile] by indexing all files in the [projectroot] and its subdirectories as directed by the [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 location. Use the makepri createconfig command to generate this file. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of PRI file, default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/mn <filepath> Location of the application or component's manifest. This parameter is ignored if [indexname] is given. Default is [projectroot]\AppXManifest.xml.
/in <string> Name for the generated index of resources. Typically matches the AppX package name, class library simple name, etc. May 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 generated by default.
/am Causes Makepri.exe to set the auto merge flag within the PRI file. Default is not set.
Note
This flag is not recommended for normal use with AppX packages.
/o Overwrite an existing output file of the same name without prompting.
/v Causes verbose messages to be output to 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 the [projectroot] and its subdirectories based on [indexfile] and as directed by the [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 output location. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of PRI file, default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. Default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/il <filepath> XML log of indexed resources. No log file generated by default.
/am Causes Makepri.exe to set the auto merge flag within the PRI file. By default it is set to same as the base PRI file.
Note
This flag is not recommended for normal use with AppX packages.
/o Overwrite an existing output file of the same name without prompting.
/v Causes verbose messages to be output to 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 the [projectroot] and its subdirectories as directed by the [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 output location. Example:
/cf C:\MyApp\priconfig.xml
/of <filepath> Output location of PRI file, default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. Default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/il <filepath> XML log of indexed resources. No log file generated by default.
/am Causes Makepri.exe to set the auto merge flag within the PRI file. By default it is set to same as the base PRI file.
Note
This flag is not recommended for normal use with AppX packages.
/o Overwrite an existing output file of the same name without prompting.
/v Causes verbose messages to be output to 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 PRI file, default is [projectroot]\resources.pri. Example:
/of C:\MyApp\src\resources.pri
/if <filepath> Location of the base PRI file. Default is [projectroot]\resources.pri. Example:
/if C:\MyApp\1.2\resources.pri
/dt <string> Format of the dumped file, either 'Basic' or 'Detailed'. The default is 'Basic'.
/o Overwrite an existing output file of the same name without prompting.
/v Causes verbose messages to be output to the console.

Return to the top of this topic.

See also

Make Package (makepkg.exe)