LibraryFirst create a library project. dotnet add path/to/service.csproj reference path/to/lib.csproj