There seems to be a breaking change in the latest release (5.2.0)
To replicate:
- download the latest stable template for mvc core
- Update all nuget packages to latest stable
The property requiredPermissionName
is no longer available
Any steps to overcome would be appreciated...
Sample Code from Template (.net core MVC)
public class GpNavigationProvider : NavigationProvider
{
public override void SetNavigation(INavigationProviderContext context)
{
context.Manager.MainMenu
.AddItem(
new MenuItemDefinition(
PageNames.Home,
L("HomePage"),
url: "",
icon: "home",
requiresAuthentication: true
)
).AddItem(
new MenuItemDefinition(
PageNames.Tenants,
L("Tenants"),
url: "Tenants",
icon: "business",
requiredPermissionName: PermissionNames.Pages_Tenants
)
Compile Error:
Severity Code Description Project File Line Suppression State Error CS1739
The best overload for 'MenuItemDefinition' does not have a parameter named 'requiredPermissionName'
...\5.1.1\aspnet-core\src\Gp.Web.Mvc\Startup\GpNavigationProvider.cs 29 Active