{"record":{"id":"36e80fd351af1abe","repo":"abpframework/abp","slug":"there-is-no-version-found-with-given-version-ver","errorCode":null,"errorMessage":"There is no version found with given version: {version}","messagePattern":"There is no version found with given version: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs","lineNumber":164,"sourceCode":"                else\n                {\n                    Logger.LogWarning($\"> dotnet tool uninstall -g volo.abp.cli\");\n                    Logger.LogWarning(!templateVersion.IsPrerelease\n                        ? $\"> dotnet tool install -g volo.abp.cli --version \\\"{templateVersion.Major}.{templateVersion.Minor}.*\\\"\"\n                        : $\"> dotnet tool install -g volo.abp.cli --version {templateVersion}\");\n                }\n\n                if (userSpecifiedVersion)\n                {\n                    Logger.LogWarning($\"We have changed the template version as the cli version.\");\n                    Logger.LogWarning($\"New version: {version}\");\n                }\n            }\n        }\n\n        if (!trustUserVersion && !await IsVersionExists(name, version))\n        {\n            throw new Exception(\"There is no version found with given version: \" + version);\n        }\n\n        var nugetVersion = await GetTemplateNugetVersionAsync(name, type, version) ?? version;\n\n        if (!string.IsNullOrWhiteSpace(templateSource) && !IsNetworkSource(templateSource))\n        {\n            Logger.LogInformation(\"Using local \" + type + \": \" + name + \", version: \" + version);\n\n            // A local template source can be a direct \".zip\" file path or a folder that contains the \"{name}-{version}.zip\" file.\n            var localTemplateFilePath = templateSource.EndsWith(\".zip\", StringComparison.OrdinalIgnoreCase)\n                ? templateSource\n                : Path.Combine(templateSource, name.Replace(\"/\", \".\").EnsureEndsWith('-') + version + \".zip\");\n\n            Logger.LogInformation(\"Using local template file: \" + localTemplateFilePath);\n\n            return new TemplateFile(File.ReadAllBytes(localTemplateFilePath),\n                version, latestVersion, nugetVersion);\n        }","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/abpframework/abp/blob/7ed43b1931b9df46a50c0c59148a18645641d0df/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs#L146-L182","documentation":"Thrown by `AbpIoSourceCodeStore.GetAsync` when `trustUserVersion` is false and the `IsVersionExists` check against the abp.io `all-versions` API reports the requested version does not exist for the template. It is a raw `Exception` (not `CliUsageException`).","triggerScenarios":"Running `abp new -v <version>` (or a module download) with a version that does not exist on the remote for that template/module name; passing a typo or a version from a different product line.","commonSituations":"Typing the version wrong (e.g. `8.3` instead of `8.3.0`); requesting a version newer/older than published; mismatched template name; prerelease version requested without prerelease flag.","solutions":["Check published versions at abp.io or via the all-versions API and use an exact published version.","Include prereleases if needed by enabling `includePreReleases` in the requesting command.","Use `trustUserVersion`/local template source if you genuinely want an unpublished/local version."],"exampleFix":"# before\nabp new Acme.BookStore -v 99.0.0\n# after\nabp new Acme.BookStore -v 8.3.0","handlingStrategy":"validation","validationCode":"// Verify the version exists before requesting the template.\nbool exists = await IsVersionExistsAsync(templateName, version);\nif (!exists)\n    throw new ArgumentOutOfRangeException(nameof(version), $\"Version {version} not published for {templateName}.\");","typeGuard":null,"tryCatchPattern":"try { await sourceCodeStore.GetAsync(name, type, version); }\ncatch (Exception ex) when (ex.Message.Contains(\"no version found\"))\n{\n    logger.LogError(\"Version {Version} not found for {Name}; check published versions.\", version, name);\n    throw;\n}","preventionTips":["Cross-check the version against abp.io all-versions before scripting.","Use exact semver versions (e.g. 8.3.0, not 8.3).","Enable prereleases explicitly when targeting RC versions."],"tags":["cli","templates","versioning","validation","abp-io"],"backgroundTag":null,"analyzedSha":"7ed43b1931b9df46a50c0c59148a18645641d0df","analyzedAt":"2026-08-13T16:26:11.351Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}