{"record":{"id":"1dbefde1707a3d00","repo":"BeyondDimension/SteamTools","slug":"makepri-exe","errorCode":null,"errorMessage":"makepri.exe","messagePattern":"makepri\\.exe","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"src/BD.WTTS.Client.Tools.Publish/Helpers/MSIXHelper.cs","lineNumber":39,"sourceCode":"        const string makepri_exe = \"makepri.exe\";\n\n        static string GetMakePriPath(WinVersion version)\n        {\n            var path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);\n            path = Path.Combine(path, \"Windows Kits\", \"10\", \"bin\", $\"10.0.{(ushort)version}.0\", RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant(), makepri_exe);\n            return path;\n        }\n\n        static string GetMakePriPath()\n        {\n            var query = from m in Enum.GetValues<WinVersion>().OrderByDescending(x => (ushort)x)\n                        let p = GetMakePriPath(m)\n                        let exists = File.Exists(p)\n                        where exists\n                        select p;\n            var path = query.FirstOrDefault();\n            if (string.IsNullOrWhiteSpace(path))\n                throw new FileNotFoundException(makepri_exe);\n            return path;\n        }\n\n        public static void Start(string rootPublicPath)\n        {\n            // https://learn.microsoft.com/en-us/windows/uwp/app-resources/makepri-exe-command-options\n\n            var xmlPath = @$\"{rootPublicPath}\\priconfig.xml\";\n            var mnPath = @$\"{rootPublicPath}\\AppXManifest.xml\";\n\n            IOPath.FileIfExistsItDelete(xmlPath);\n\n            var fileName = GetMakePriPath();\n            var psi = new ProcessStartInfo\n            {\n                FileName = fileName,\n                UseShellExecute = false,\n                Arguments =","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/BeyondDimension/SteamTools/blob/c16ffa08e03b192d23ada290c4969e77f9201f3d/src/BD.WTTS.Client.Tools.Publish/Helpers/MSIXHelper.cs#L21-L57","documentation":"Error \"makepri.exe\" thrown in BeyondDimension/SteamTools.","triggerScenarios":"Thrown when building an MSIX package: makepri.exe could not be located in any of the searched Windows SDK installation paths.","commonSituations":"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.","solutions":["Install the Windows 10/11 SDK so makepri.exe is present under %ProgramFiles(x86)%\\Windows Kits\\10\\bin\\<version>\\<arch>\\.","If the SDK is already installed, install a newer SDK version; the tool searches installed versions from newest to oldest.","Ensure the build runs on Windows x86 Program Files environment where the Windows Kits folder exists."],"exampleFix":"Install the Windows SDK via Visual Studio Installer (or the standalone SDK installer), then rerun the MSIX packaging step.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c16ffa08e03b192d23ada290c4969e77f9201f3d","analyzedAt":"2026-08-13T11:52:20.410Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}