Open stephen-jonesy opened 2 years ago
builder.Services.AddBreadcrumbs(Assembly.GetExecutingAssembly(), options => { options.TagName = "nav"; options.TagClasses = ""; options.OlClasses = "breadcrumb"; options.LiClasses = "breadcrumb-item"; options.ActiveLiClasses = "breadcrumb-item active"; });
this will help
In .NET Core Razor Pages I get System.InvalidOperationException: 'Sequence contains no matching element'
Error: InvalidOperationException: Unable to resolve service for type 'SmartBreadcrumbs.BreadcrumbManager' while attempting to activate 'SmartBreadcrumbs.BreadcrumbTagHelper'.
Since .Net 6 has moved where dependency injects are registered (from startup to Program.cs), the syntax within the documentation is no longer valid.
Is there currently a valid solution for this?