How do I use ASP.NET Core 3.0 types from a library project for shared Controllers, Middleware etc?
问题 While ASP.NET Core up to 2.2 could be consumed through NuGet to create library projects for shared Controllers, Middleware etc, how do I create a library that is able to use ASP.NET Core 3.0 types? While for projects containing views there is a "Razor Class Library" ( razorclasslib ) template, how do I create a library that only contains logic components? 回答1: Applications built for .NET Core 3.0 can reference one or more shared frameworks. ASP.NET Core is one of these shared frameworks