Praveen
Praveen

Reputation: 841

Deploy webjobs on specific build mode

I am trying to deploy webjob using web application with specific build mode.

Say for example,

Publishing my web application in Release mode. But, webjob project associated with my webapp is built using default Debug mode.

{
  "$schema": "http://schemastore.org/schemas/json/webjobs-list.json",
  "WebJobs": [
    {
      "filePath": "../../SampleWebJobProject/SampleWebJobProject.csproj" // I need to set build mode for this project
    }
  ]
}

Is there anyway to explicitly mention the build mode for my webjob project?

Upvotes: 0

Views: 95

Answers (1)

Joey Cai
Joey Cai

Reputation: 20067

I test in my site and when I follow this tutorial to deploy webjob, the webjob using Release build mode as default. So if you still deploy with Debug mode, just manually change it to Release.

enter image description here

The webjobs-list.json only contain WebJobs projects of webapp.

Upvotes: 1

Related Questions