1
votes

I have a web application(azure webapp) with Azure Continuous Delivery enabled. Which means that any time I make a commit and push it to the remote, it automatically builds the application and deploys it.

I also have some webjobs and I would like the process to also publish the web jobs along with web application.

I found an option in Visual Studio to attach existing project as webjob to the web application. (Right-click on Web application> Add> "Add Existing Project as Azure Webjob".

When I use the option to add a project as webjob I get an error message saying

Unable to find version 1.0.12 of package Microsoft.Web.WebJobs.Publish

enter image description here

The current latest publish package version installed in my project:

Microsoft.Web.WEbJobs.Publish 1.1.0

The idea is that I don't want to keep publishing the webjobs separately. I would like the build and deploy process to update also webjobs at the same time.

Has anyone the same issue?

1
What version of VS is that with?David Ebbo
Vs2015 @DavidEbboakd
Try 2017 if you can, but I'll ask VS experts why it may be doing that in 2015.David Ebbo
@DavidEbbo, Unfortunately, I wont be able to easily test it as I have no vs2017 installed on the machine.akd
@akd what does Help/About say about the versions you have installed? The package you mentioned ships as part of Azure App Services & Tools in VS2015 and 1.1.0 is the latest version that was shippedJacques Eloff

1 Answers

0
votes

I can't repro this issue on my side with VS2015 update3. But according to the error info, I recomment you to add the following code in your porjectName.csproj file and run VS with administrator rights.

<Import Project="..\packages\Microsoft.Web.WebJobs.Publish.1.1.0\tools\webjobs.targets" Condition="Exists('..\packages\Microsoft.Web.WebJobs.Publish.1.1.0\tools\webjobs.targets')" />

enter image description here