我有一个网站和一个webjob项目在同一个sln:
在Sritttheres 属性中webjobs-list.json具有以下设置:
"WebJobs": [
{
"filePath": "../Sritt.WebJob/Sritt.WebJob.csproj"
}
Run Code Online (Sandbox Code Playgroud)
我已经像这样配置了VSTS构建(使用新的构建系统):
Solution: **\*.sln
MSBuild Args: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.stagingDirectory)"
Run Code Online (Sandbox Code Playgroud)
在VSTS中构建给我以下警告:
C:\a\1\s\packages\Microsoft.Web.WebJobs.Publish.1.0.9\tools\webjobs.console.targets(149,5): warning : WebJob schedule for SrittWebJob will not be created. WebJob schedules can only be created when the publish destination is an Azure Website [C:\a\1\s\Sritt.WebJob\Sritt.WebJob.csproj]
Run Code Online (Sandbox Code Playgroud)
并出现以下错误:
packageFile= Find-Files -SearchPattern C:\a\1\a\**\*.zip
packageFile= C:\a\1\a\Sritt.WebJob.zip C:\a\1\a\Sritt.zip
Found more than one file to deploy with search pattern 'C:\a\1\a\**\*.zip'. There can be only one.
Run Code Online (Sandbox Code Playgroud)
如何部署网站和webjob?我需要将它们分成不同的解决方案吗?