我正在尝试在.NET核心上实现(来自较旧的MVC 5项目的端口)基于组的权限并且我收到错误
无法创建抽象类或接口
Function RightClickOnMoMAction(targ As String) Dim cbar As CommandBar Set cbar = Application.CommandBars("Cell") With cbar.Controls.add(Temporary:=True, Type:=msoControlButton, before:=1) .BeginGroup = False .FaceId = 1111 .Caption = targ .OnAction = "'" & ThisWorkbook.Name & "'!'rcFollowSlide """ & targ & """" & "'" End With End Function
的实例。
UserStore
我没有在原始MVC 5项目中使用此错误,但我无法在.Net Core上解决此问题。请帮忙。
这是config.cs文件。
var manager = new ApplicationUserManager(
new UserStore<ApplicationUser,
ApplicationRole,
DbContext,
string,
ApplicationUserClaim,
ApplicationUserRole,
ApplicationUserLogin,
IdentityUserToken<string>>
(context.Get<ApplicationDbContext>())
);
如果您想在本地试用项目以检查依赖项,here's the link.