{"record":{"id":"8adf1e2d93b84b1c","repo":"stride3d/stride","slug":"package-file-0-doesn-t-exist","errorCode":null,"errorMessage":"Package file [{0}] doesn't exist","messagePattern":"Package file \\[(.+?)\\] doesn't exist","errorType":"validation","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"sources/assets/Stride.AssetCompiler/PackageBuilderOptions.cs","lineNumber":108,"sourceCode":"            }\n\n            if (SlavePipe == null)\n            {\n                if (!string.IsNullOrWhiteSpace(PackageManifestFile))\n                {\n                    if (!File.Exists(PackageManifestFile))\n                        throw new ArgumentException(\"Build manifest [{0}] doesn't exist\".ToFormat(PackageManifestFile), \"packageManifestFile\");\n                }\n                else if (string.IsNullOrWhiteSpace(PackageFile))\n                {\n                    if (string.IsNullOrWhiteSpace(SolutionFile) || PackageId == Guid.Empty)\n                    {\n                        throw new ArgumentException(\"This tool requires an input file (package, project, or .sdbuild manifest), or a --solution-file and --package-id.\", \"inputPackageFile\");\n                    }\n                }\n                else if (!File.Exists(PackageFile))\n                {\n                    throw new ArgumentException(\"Package file [{0}] doesn't exist\".ToFormat(PackageFile), \"inputPackageFile\");\n                }\n            }\n        }\n    }\n}\n","sourceCodeStart":90,"sourceCodeEnd":114,"githubUrl":"https://github.com/stride3d/stride/blob/96fad776d210c221682aac1ccdf4c79dc046fc38/sources/assets/Stride.AssetCompiler/PackageBuilderOptions.cs#L90-L114","documentation":"ValidateOptions throws this ArgumentException when PackageFile was explicitly supplied (non-whitespace) but File.Exists(PackageFile) is false. Unlike error 12 (no input at all), an input was given but points at a missing .sdpkg file. The formatted message includes the exact path checked.","triggerScenarios":"Invoking with --input-package-file (PackageFile) set to a path where no package file exists: wrong filename/extension, file not yet built, relative path resolved against an unexpected CWD, or moved/deleted package.","commonSituations":"Pointing at the project's source package before it was ever compiled; typos in package names in build scripts; Linux case-sensitive paths vs Windows-built scripts; artifacts cleaned by a previous CI step.","solutions":["Confirm the .sdpkg file exists at the given path and fix the path if not","Use an absolute path to avoid CWD surprises","If the package should be produced by an earlier step, run/verify that step first","Check filename casing on case-sensitive filesystems"],"exampleFix":"// before\n--input-package-file=MyGame/MyGame.spkg\n// after\n--input-package-file=MyGame/MyGame.sdpkg","handlingStrategy":"validation","validationCode":"if (!string.IsNullOrWhiteSpace(packageFile) && !File.Exists(packageFile))\n    throw new FileNotFoundException($\"Package file not found: {packageFile}\", packageFile);","typeGuard":null,"tryCatchPattern":"try { RunBuilder(options); } catch (ArgumentException ex) when (ex.ParamName == \"inputPackageFile\") { Console.Error.WriteLine($\"Package file missing: {options.PackageFile}\"); return 1; }","preventionTips":["Verify the package file exists (and has the correct extension) before building","Run the step that produces the .sdpkg first","Use absolute paths and check filename casing on Linux"],"tags":["dotnet","files","cli"],"backgroundTag":"file-not-found","analyzedSha":"96fad776d210c221682aac1ccdf4c79dc046fc38","analyzedAt":"2026-09-14T02:59:31.279Z","contentChangedAt":"2026-09-14T02:59:31.279Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}