Default WebJob template in Visual Studio instatiates JobHost without providing the config
See original GitHub issueWhen a new WebJob project is created, the JobHost is instantiated as follows:
var host = new JobHost();
It is not using the configuration that is created right above that line:
var config = new JobHostConfiguration();
if (config.IsDevelopment)
{
config.UseDevelopmentSettings();
}
Please update the template to do:
var host = new JobHost(config);
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Tutorial: Get started with the Azure WebJobs SDK for event ...
In Visual Studio, select File > New > Project. Under Create a new project, select Console Application (C#), and then select Next. Under ......
Read more >Develop and deploy WebJobs using Visual Studio
Learn how to develop Azure WebJobs in Visual Studio and deploy them to Azure App Service, including creating a scheduled task.
Read more >How to use the WebJobs SDK - Azure App Service
Learn more about how to write code for the WebJobs SDK. Create event-driven background processing jobs that access data in Azure and ...
Read more >Azure Web Job Template missing .Net Core Target
In Visual Studio 2019 the Azure Web Job Template does not have any target option for .Net Core. I need to have multiple...
Read more >Create a .NET WebJob in Azure App Service
Deploy to Web Apps. Visual Studio automatically creates a new web app in App Service and a SQL Database instance. Configure the web...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just created a new project, and I indeed see the behavior. @mlorbetske, could this be a recent regression in the WebJob template?
Closing this as fixed: external. Details of when the fix will ship are above.