BeyondDimension/SteamTools · error · FileNotFoundException

makepri.exe

Error message

makepri.exe

What it means

Error "makepri.exe" thrown in BeyondDimension/SteamTools.

Source

Thrown at src/BD.WTTS.Client.Tools.Publish/Helpers/MSIXHelper.cs:39

        const string makepri_exe = "makepri.exe";

        static string GetMakePriPath(WinVersion version)
        {
            var path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
            path = Path.Combine(path, "Windows Kits", "10", "bin", $"10.0.{(ushort)version}.0", RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant(), makepri_exe);
            return path;
        }

        static string GetMakePriPath()
        {
            var query = from m in Enum.GetValues<WinVersion>().OrderByDescending(x => (ushort)x)
                        let p = GetMakePriPath(m)
                        let exists = File.Exists(p)
                        where exists
                        select p;
            var path = query.FirstOrDefault();
            if (string.IsNullOrWhiteSpace(path))
                throw new FileNotFoundException(makepri_exe);
            return path;
        }

        public static void Start(string rootPublicPath)
        {
            // https://learn.microsoft.com/en-us/windows/uwp/app-resources/makepri-exe-command-options

            var xmlPath = @$"{rootPublicPath}\priconfig.xml";
            var mnPath = @$"{rootPublicPath}\AppXManifest.xml";

            IOPath.FileIfExistsItDelete(xmlPath);

            var fileName = GetMakePriPath();
            var psi = new ProcessStartInfo
            {
                FileName = fileName,
                UseShellExecute = false,
                Arguments =

View on GitHub (pinned to c16ffa08e0)

Solutions

  1. Install the Windows 10/11 SDK so makepri.exe is present under %ProgramFiles(x86)%\Windows Kits\10\bin\<version>\<arch>\.
  2. If the SDK is already installed, install a newer SDK version; the tool searches installed versions from newest to oldest.
  3. Ensure the build runs on Windows x86 Program Files environment where the Windows Kits folder exists.

Example fix

Install the Windows SDK via Visual Studio Installer (or the standalone SDK installer), then rerun the MSIX packaging step.

When it happens

Trigger: Thrown when building an MSIX package: makepri.exe could not be located in any of the searched Windows SDK installation paths.

Common situations: The Windows 10/11 SDK is not installed, or the 'Windows SDK for UWP Managed Apps' component is missing, or the SDK is installed to a nonstandard location. Install the Windows SDK via the Visual Studio Installer or the standalone SDK setup.


AI-assisted analysis of BeyondDimension/SteamTools@c16ffa08e0 (2026-08-13). Data as JSON: /api/errors/1dbefde1707a3d00. Report an issue: GitHub.