I have solution with four projects:
FAPIServer.Storage
FAPIServer
FAPIServer.EntityFramework
FAPIServer.Web
The 1
, 2
and 3
are library project and the last 4
is ASP NET Core project. I planned that if I will be publishing the appropriate NuGet packages, then I will just convert the 4
project to library project and add necessary dependecies on ASP NET Core by referencing them as NuGet packages. But it occured that most of necessary packages are marked as deprecated.
I know I can use <IsPackable>true</IsPackable>
in .csproj
but I'm not sure if it's a good way to achieve my goal. Using this the .exe
file will also be included in NuGet? It seems to me that it will be generally heavier than just library project.
So what I need to do to build NuGet package from ASP NET Core project or how can I reference whole ASP NET Core framework in my library project?
I'm using NET 7.