Reputation: 6758
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
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?
Upvotes: 1
Views: 834
Reputation: 24529
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')" />
Upvotes: 0