Differences

This shows you the differences between the selected revisions of the page.

2022-10-21 2025-02-14 (current)
links update (martin) in background consistency (martin)
Line 312: Line 312:
You can develop the WebJob (console) application as any other desktop console application. You can also start with //Azure WebJob// project template. You can develop the WebJob (console) application as any other desktop console application. You can also start with //Azure WebJob// project template.
-With Visual Studio, you can ease [[#deploying|the deployment]] using command //Publish as Azure WebJob//, which is available in the project context menu in //Solution Explorer//. It opens //[[https://learn.microsoft.com/en-us/azure/app-service/webjobs-dotnet-deploy-vs#configure|Add Azure WebJob]]// dialog that allows you to name your job and setup how it is run (including scheduling). Make sure you add all additional files needed for the job (i.e. ''winscp.exe'', ''run.bat'' and private key, as shown above) to the project with //Build Action// set to //Content// to have them deployed (see also [[library_install#vs|Using WinSCP .NET assembly from Visual Studio]]). Easier is to use the [[library_install#nuget|NuGet package]]. When you submit the dialog, a publish process starts on the background in //Web Publish Activity// pane. Next time you publish, after making changes to the project, only modified files are uploaded. See also [[https://learn.microsoft.com/en-us/azure/app-service/webjobs-dotnet-deploy-vs|Develop and deploy WebJobs using Visual Studio - Azure App Service]].+With Visual Studio, you can ease [[#deploying|the deployment]] using command //Publish as Azure WebJob//, which is available in the project context menu in //Solution Explorer//. It opens //[[https://learn.microsoft.com/en-us/azure/app-service/webjobs-dotnet-deploy-vs#configure|Add Azure WebJob]]// dialog that allows you to name your job and setup how it is run (including scheduling). Make sure you add all additional files needed for the job (i.e. ''winscp.exe'', ''run.bat'' and private key, as shown above) to the project with //Build Action// set to //Content// to have them deployed (see also [[library_install#vs|Using WinSCP .NET assembly from Visual Studio]]). Easier is to use the [[library_install#nuget|NuGet package]]. When you submit the dialog, a publish process starts in the background in //Web Publish Activity// pane. Next time you publish, after making changes to the project, only modified files are uploaded. See also [[https://learn.microsoft.com/en-us/azure/app-service/webjobs-dotnet-deploy-vs|Develop and deploy WebJobs using Visual Studio - Azure App Service]].
===== Further Reading ===== ===== Further Reading =====

Last modified: by martin