mo-esmp / DynamicRoleBasedAuthorizationNETCore

Dynamic Role-Based Access Control for ASP.NET Core MVC and Web API
GNU General Public License v3.0
451 stars 94 forks source link

IMvcControllerDiscovery in .net core2.1 #7

Closed assadnazar closed 4 years ago

assadnazar commented 5 years ago

I cant resolve IMvcControllerDiscovery in .net core 2.1... can you guide me with that?

mo-esmp commented 5 years ago

What exception do you get ? It would be great if you provide more information.

assadnazar commented 5 years ago

I am not getting any reference to the library. Can you tell me library reference to include

coskuncinar commented 5 years ago

Change the contents of the "DynamicRoleBasedAuthorization.csproj". Also you will be upgraded to the 2.2

<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp2.2</TargetFramework> <UserSecretsId>aspnet-DynamicRoleBasedAuthorization-5CB62301-D158-460A-94F8-2B16F86DD954</UserSecretsId> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.App" /> <PackageReference Include="Microsoft.AspNetCore.All" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.3" PrivateAssets="All" /> </Project>