You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/webjobs-sdk-get-started.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,16 @@ This article shows you how to deploy WebJobs as a .NET Core console app. To depl
34
34
35
35
## WebJobs NuGet packages
36
36
37
-
1. Install the latest stable 3.x version of the `Microsoft.Azure.WebJobs.Extensions` NuGet package, which includes `Microsoft.Azure.WebJobs`.
37
+
1. Install the latest stable 3.x version of the [`Microsoft.Azure.WebJobs.Extensions` NuGet package](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions/), which includes `Microsoft.Azure.WebJobs`.
38
38
39
-
Here's the **Package Manager Console** command for version 3.0.2:
In this command, replace `<3_X_VERSION>` with a supported version of the package.
46
+
45
47
## Create the Host
46
48
47
49
The host is the runtime container for functions that listens for triggers and calls functions. The following steps create a host that implements [`IHost`](/dotnet/api/microsoft.extensions.hosting.ihost), which is the Generic Host in ASP.NET Core.
@@ -76,12 +78,12 @@ In ASP.NET Core, host configurations are set by calling methods on the [`HostBui
76
78
77
79
In this section, you set up console logging that uses the [ASP.NET Core logging framework](/aspnet/core/fundamentals/logging).
78
80
79
-
1. Install the latest stable version of the `Microsoft.Extensions.Logging.Console` NuGet package, which includes `Microsoft.Extensions.Logging`.
81
+
1. Install the latest stable version of the [`Microsoft.Extensions.Logging.Console` NuGet package](https://www.nuget.org/packages/Microsoft.Extensions.Logging.Console/), which includes `Microsoft.Extensions.Logging`.
80
82
81
-
Here's the **Package Manager Console** command for version 2.2.0:
@@ -90,6 +92,8 @@ In this section, you set up console logging that uses the [ASP.NET Core logging
90
92
usingMicrosoft.Extensions.Logging;
91
93
```
92
94
95
+
In this command, replace `<2_X_VERSION>` with a supported 2.x version of the package.
96
+
93
97
1. Call the [`ConfigureLogging`](/dotnet/api/microsoft.aspnetcore.hosting.webhostbuilderextensions.configurelogging) method on [`HostBuilder`](/dotnet/api/microsoft.extensions.hosting.hostbuilder). The [`AddConsole`](/dotnet/api/microsoft.extensions.logging.consoleloggerextensions.addconsole) method adds console logging to the configuration.
94
98
95
99
```cs
@@ -134,11 +138,13 @@ Starting with version 3.x, you must explicitly install the Storage binding exten
134
138
135
139
1. Installthelateststableversionofthe [Microsoft.Azure.WebJobs.Extensions.Storage](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.Storage) NuGet package, version 3.x.
136
140
137
-
Here's the **Package Manager Console** command for version 3.0.4:
0 commit comments