casbin-net / casbin-aspnetcore

Casbin.NET integration middleware and sample code for ASP.NET Core
https://github.com/casbin/Casbin.NET
Apache License 2.0
64 stars 20 forks source link

Ef core example - WebApplicationWithEfcoreSample #64

Closed OleksiiSydorov closed 10 months ago

OleksiiSydorov commented 10 months ago

I have downloaded WebApplicationWithEfcoreSample sample app, and when i'm trying to run it, recieving such error - vpn_conf_general and slightly changed sample .csproj file, modified/added - <PackageReference Include="Casbin.AspNetCore" Version="1.1.0" /> <PackageReference Include="Casbin.NET.Adapter.EFCore" Version="2.1.0" />

casbin-bot commented 10 months ago

@sagilio @sociometry @AsakusaRinne

Tanyuu commented 10 months ago

Initially it is due to incorrect Casbin.net version in Casbin.AspNetCore.Authorization csproj file. I will further confirm and fix it.

OleksiiSydorov commented 10 months ago

@Tanyuu Yes you are right. When i changed EfCore adapter to version 2.0.0-preview.1 example started working for me. <PackageReference Include="Casbin.AspNetCore" Version="1.1.0" /> <PackageReference Include="Casbin.NET.Adapter.EFCore" Version="2.0.0-preview.1" />

github-actions[bot] commented 10 months ago

:tada: This issue has been resolved in version 1.1.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: