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

CI error: error CS0103: The name 'SyncedEnforcer' does not exist in the current context #55

Closed hsluoyz closed 1 year ago

hsluoyz commented 1 year ago

https://github.com/casbin-net/casbin-aspnetcore/actions/runs/3630850164/jobs/6124702645

image

casbin-bot commented 1 year ago

@sagilio @sociometry @AsakusaRinne

ZhengLin-Li commented 1 year ago

Actually, there is no SyncedEnforcer class in this project. I have searched the keyword SyncedEnforcer and let my IDE find them in files, and it turned out the keyword SyncedEnforcer only appears three times.

So, I believe this issue may be caused by some copy-paste problems. I will fix it in my next PR. https://github.com/casbin-net/casbin-aspnetcore/pull/57

sagilio commented 1 year ago

The reason is dependency package version be deleted. image

ZhengLin-Li commented 1 year ago

The reason is dependency package version be deleted. image

@sagilio So, how shall we solve this? you could request change in my PR here https://github.com/casbin-net/casbin-aspnetcore/pull/57.

sagilio commented 1 year ago

Fixed by https://github.com/casbin-net/casbin-aspnetcore/commit/85ad73cca19ae59ff6fb94e2e1e67510bfbd4975