Prior to Visual Studio 2019 the WebJobs associated with web project used get publied on publishing the web project. Visual Studio 2019 does not even have the feature to associate the web jobs with a web project.
How to associate web jobs to web project?