{"record":{"id":"23bf9760f824e7fc","repo":"Unity-Technologies/UnityCsReference","slug":"unsupported-architecture-runtimeinformation-proce","errorCode":null,"errorMessage":"Unsupported architecture {RuntimeInformation.ProcessArchitecture} on Windows","messagePattern":"Unsupported architecture (.+?) on Windows","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"critical","filePath":"Editor/Mono/Scripting/ScriptCompilation/MsBuild/UnityEditorMSBuildPropsTargetsGeneration.cs","lineNumber":200,"sourceCode":"            cache.AllPlugins,\n            searchPaths,\n            globalAnalyzers,\n            buildTarget.ToString(),\n            CompilationPipeline.codeOptimization == CodeOptimization.Release);\n    }\n\n    private static string GetCurrentDotNETRuntimeId()\n    {\n        if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))\n        {\n            switch (RuntimeInformation.ProcessArchitecture)\n            {\n                case Architecture.Arm64:\n                    return \"win-arm64\";\n                case Architecture.X64:\n                    return \"win-x64\";\n                default:\n                    throw new NotSupportedException($\"Unsupported architecture {RuntimeInformation.ProcessArchitecture} on Windows\");\n            }\n        }\n        else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\n        {\n            return \"linux-x64\";\n        }\n        else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))\n        {\n            switch (RuntimeInformation.ProcessArchitecture)\n            {\n                case Architecture.Arm64:\n                    return \"osx-arm64\";\n                case Architecture.X64:\n                    return \"osx-x64\";\n                default:\n                    throw new NotSupportedException($\"Unsupported architecture {RuntimeInformation.ProcessArchitecture} on macOS\");\n            }\n        }","sourceCodeStart":182,"sourceCodeEnd":218,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/Scripting/ScriptCompilation/MsBuild/UnityEditorMSBuildPropsTargetsGeneration.cs#L182-L218","documentation":"Thrown by GetCurrentDotNETRuntimeId (UnityEditorMSBuildPropsTargetsGeneration.cs:200, NotSupportedException) when running on Windows but RuntimeInformation.ProcessArchitecture is neither Architecture.Arm64 nor Architecture.X64 (e.g. X86 / 32-bit, or Arm). Unity's bundled MSBuild/.NET SDK only ships RIDs for win-arm64 and win-x64, so any other architecture cannot be mapped to a runtime identifier and the props/targets generation aborts.","triggerScenarios":"Launching the Unity Editor on a 32-bit Windows (x86) machine, or an unsupported Windows-on-Arm configuration, triggering MSBuild props generation for script compilation.","commonSituations":"Running the editor under an x86 emulation layer or a 32-bit OS. A non-standard Windows device family without a 64-bit runtime.","solutions":["Run Unity Editor on a supported 64-bit Windows architecture (x64 or ARM64).","If you must stay on the current machine, use a 64-bit OS install so ProcessArchitecture reports X64 or Arm64."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Guard before any code path that resolves a Windows RID\nif (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)\n    && RuntimeInformation.ProcessArchitecture is not (Architecture.X64 or Architecture.Arm64))\n{\n    throw new PlatformNotSupportedException(\n        $\"Unity requires Windows x64 or ARM64 (got {RuntimeInformation.ProcessArchitecture}).\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run Unity Editor only on supported 64-bit Windows (x64/ARM64).","Detect architecture at startup and fail fast with a clear message rather than mid-compile.","Avoid 32-bit OS installs and x86 emulation layers for editor work."],"tags":["unity","msbuild","dotnet","architecture","windows","environment"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}