When attempting to run the command dotnet new kentico-xperience-sample-mvc -n DancingGoatXbyK
, an error occurs. The template cannot be found, and the process fails with the following output:
Could not find the template package containing template 'Kentico.Xperience.DancingGoat' Could not find the template package containing template 'Kentico.Xperience.DancingGoat' Sequence contains more than one matching element at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at Microsoft.TemplateEngine.Edge.Settings.TemplatePackageManager.GetTemplatePackageAsync(ITemplateInfo template, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.CliTemplateInfo.GetManagedTemplatePackageAsync(TemplatePackageManager templatePackageManager, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.TemplateInvoker.InvokeTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.Commands.TemplateCommand.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.HandleTemplateInstantiationAsync(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteIntAsync(InstantiateCommandArgs instantiateArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Cli.Commands.BaseCommand`1.CommandAction.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
This prevents the successful creation of the sample MVC application.
Environment
- Xperience by Kentico version: 29.3.0
- .NET version: 8
- Execution environment: Local
Additional Information
- Verified that the Kentico Xperience template package is installed.
- Running
dotnet new --list
does not show the Kentico Xperience templates as available. - Attempted reinstalling the Kentico Xperience template package using
dotnet new -i Kentico.Xperience.Templates
, but the issue persists.