Skip to content

Commit e773f65

Browse files
Added an alert to notify users of template/workload visibility (#30055)
* Added an alert to notify user's of template/workload visibility * Update docs/core/extensions/includes/worker-template-workloads.md Co-authored-by: Genevieve Warren <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent c30402c commit e773f65

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
author: IEvangelist
3+
ms.author: dapine
4+
ms.date: 06/30/2022
5+
ms.topic: include
6+
---
7+
8+
> [!IMPORTANT]
9+
> Installing the .NET SDK also installs the `Microsoft.NET.Sdk.Worker` and the worker template. In other words, after installing the .NET SDK, you could create a new worker by using the [dotnet new worker](../../tools/dotnet-new-sdk-templates.md#web-others) command. If you're using Visual Studio, the template is hidden until the optional ASP.NET and web development workload is installed.

docs/core/extensions/windows-service.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ In this tutorial, you'll learn how to:
2424
2525
[!INCLUDE [workers-samples-browser](includes/workers-samples-browser.md)]
2626

27+
[!INCLUDE [worker-template-workloads](includes/worker-template-workloads.md)]
28+
2729
## Prerequisites
2830

2931
- The [.NET 6.0 SDK or later](https://dotnet.microsoft.com/download/dotnet)

docs/core/extensions/workers.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@ title: Worker Services in .NET
33
description: Learn how to implement a custom IHostedService and use existing implementations with .NET.
44
author: IEvangelist
55
ms.author: dapine
6-
ms.date: 01/24/2022
6+
ms.date: 06/30/2022
77
ms.topic: overview
88
---
99

1010
# Worker Services in .NET
1111

1212
There are numerous reasons for creating long-running services such as:
1313

14-
- Processing CPU intensive data.
14+
- Processing CPU-intensive data.
1515
- Queuing work items in the background.
1616
- Performing a time-based operation on a schedule.
1717

1818
Background service processing usually doesn't involve a user interface (UI), but UIs can be built around them. In the early days with .NET Framework, Windows developers could create Windows Services for these reasons. Now with .NET, you can use the <xref:Microsoft.Extensions.Hosting.BackgroundService> &mdash; which is an implementation of <xref:Microsoft.Extensions.Hosting.IHostedService>, or implement your own.
1919

2020
With .NET, you're no longer restricted to Windows. You can develop cross-platform background services. Hosted services are logging, configuration, and dependency injection (DI) ready. They're a part of the extensions suite of libraries, meaning they're fundamental to all .NET workloads that work with the [generic host](generic-host.md).
2121

22+
[!INCLUDE [worker-template-workloads](includes/worker-template-workloads.md)]
23+
2224
## Terminology
2325

2426
Many terms are mistakenly used synonymously. In this section, there are definitions for some of these terms to make their intent more apparent.

docs/core/project-sdk/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: .NET project SDK overview
33
titleSuffix: ""
44
description: Learn about the .NET project SDKs.
5-
ms.date: 11/03/2021
5+
ms.date: 06/30/2022
66
ms.topic: conceptual
77
no-loc: ["EmbeddedResource", "Compile", "None", "Blazor"]
88
---
@@ -20,7 +20,7 @@ The following SDKs are available:
2020
| `Microsoft.NET.Sdk.Web` | The .NET [Web SDK](/aspnet/core/razor-pages/web-sdk) | <https://github.com/dotnet/sdk> |
2121
| `Microsoft.NET.Sdk.BlazorWebAssembly` | The .NET [Blazor WebAssembly](/aspnet/core/blazor#blazor-webassembly) SDK |
2222
| `Microsoft.NET.Sdk.Razor` | The .NET [Razor SDK](/aspnet/core/razor-pages/sdk) |
23-
| `Microsoft.NET.Sdk.Worker` | The .NET Worker Service SDK |
23+
| `Microsoft.NET.Sdk.Worker` | The .NET [Worker Service](../extensions/workers.md) SDK |
2424
| `Microsoft.NET.Sdk.WindowsDesktop` | The .NET [Desktop SDK](msbuild-props-desktop.md), which includes Windows Forms (WinForms) and Windows Presentation Foundation (WPF).\* | <https://github.com/dotnet/winforms> and <https://github.com/dotnet/wpf> |
2525

2626
The .NET SDK is the base SDK for .NET. The other SDKs reference the .NET SDK, and projects that are associated with the other SDKs have all the .NET SDK properties available to them. The Web SDK, for example, depends on both the .NET SDK and the Razor SDK.

0 commit comments

Comments
 (0)