[英]Deploy webjobs on specific build mode
I am trying to deploy webjob using web application with specific build mode.我正在尝试使用具有特定构建模式的 web 应用程序部署 webjob。
Say for example,比如说,
Publishing my web application in Release
mode.以
Release
模式发布我的 Web 应用程序。 But, webjob project associated with my webapp is built using default Debug
mode.但是,与我的 webapp 关联的 webjob 项目是使用默认
Debug
模式构建的。
{
"$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?无论如何要明确提及我的 webjob 项目的构建模式?
I test in my site and when I follow this tutorial to deploy webjob, the webjob using Release
build mode as default .我在我的站点中进行测试,当我按照本教程部署 webjob 时, webjob 使用
Release
构建模式作为默认。 So if you still deploy with Debug
mode, just manually change it to Release
.因此,如果您仍然使用
Debug
模式进行部署,只需手动将其更改为Release
。
The webjobs-list.json
only contain WebJobs projects of webapp. webjobs-list.json
只包含 webapp 的 WebJobs 项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.