Publish as Azure WebJob not working in VS 2013

I am trying to publish an Azure site along with some azure webjobs using Visual Studio 2013. I am following this tutorial .

My solution has the following structure:

Solution explorer

When I try to add an existing project as a webjob to my web project, I get an empty drop-down menu in the project options, and I cannot:

Add azure webjob

If I try to add each website separately, I also have an error: enter image description here

In this link, it looks like they had a similar problem, and the problem is that the webjobs are under the solution folder. There is no answer / solution to the problem in this thread.

I was wondering if there is a solution / workaround for this, since I don't want to get rid of the solution folders in my project so that it is organized, and manually deploying webjobs is really tedious.

Update: Here is a screenshot of the new project and Add Azure Webjob does not work with solution folders.

new webjob

+3
source share
2 answers

Expand "Properties" in Solution Explorer ... and make sure you have a "webjob-publish-settings" file with json content:

{ "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", "webJobName": "[put the name of your webjob here]", "startTime": null, "endTime": null, "jobRecurrenceFrequency": null, "interval": null, "runMode": "Continuous" } 
0
source

Installing azure sdk2.5 or higher should solve this problem: http://azure.microsoft.com/en-us/downloads/archive-net-downloads/

0
source

Source: https://habr.com/ru/post/975587/


All Articles