我使用.NET 6并且我想在类库中使用
[PageRemote]
Microsoft.AspNetCore.Mvc
尝试将 ASP.NET Core 框架引用添加到类库中,如下所示:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/target-aspnetcore?view=aspnetcore-6.0&tabs=visual-studio#use-the-aspnet-core-shared-framework