Skip to content

Commit b3e588c

Browse files
authored
Move "basic" prereqs and optional installation instructions to a global include file (#45380)
* Create prereq and install include files Create two similar include files for the basic prerequisites used for many tutorials. One is intended for those tutorials where users likely haven't installed the prereqs, and includes instructions for getting them. The other is for those tutorials where more readers have likely installed .NET and skips that section. * Add update prereqs where appropriate Add the pre-reqs with installation instructions on selected tutorials where a significant number of readers have clicked the installation links. * Replace list of prerequisites with the basic include file In those tutorials where the list of prereqs matched the "basic" include file, but data showed that most readers don't click on the links to get the prereqs. That would indicate that those readers already have the necessary components. * Include WinGet installation on Windows. * fix build warnings
1 parent a91ccf5 commit b3e588c

26 files changed

+66
-52
lines changed

docs/core/install/windows.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,15 @@ For more information about, see [.NET SDK, MSBuild, and Visual Studio versioning
167167

168168
## Install with Visual Studio Code
169169

170-
Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code can use the SDK already installed on your system. Additionally, the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension will install .NET for you if it's not already installed.
170+
Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code can use the SDK already installed on your system.
171+
172+
This [WinGet configuration file](https://builds.dotnet.microsoft.com/dotnet/install/dotnet_basic_config_docs.winget) installs the latest .NET SDK, Visual Studio Code and the C# DevKit. If you already have any of them installed, WinGet will skip that step.
173+
174+
1. Download the file and double-click to run it.
175+
1. Read the license agreement, type <kbd>y</kbd>, and select <kbd>Enter</kbd> when prompted to accept.
176+
1. Be on the lookout for a flashing User Account Control (UAC) prompt in your Windows Taskbar, you may need to require administrator-level permissions to install.
177+
178+
Additionally, the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension will install .NET for you if it's not already installed.
171179

172180
For instructions on installing .NET through Visual Studio Code, see [Getting Started with C# in VS Code](https://code.visualstudio.com/docs/csharp/get-started).
173181

docs/core/testing/unit-testing-with-mstest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This tutorial takes you through an interactive experience building a sample solu
1313

1414
## Prerequisites
1515

16-
* The [.NET 6.0 SDK or later](https://dotnet.microsoft.com/download)
16+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic.md)]
1717

1818
## Create the source project
1919

docs/core/testing/unit-testing-with-nunit.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ This tutorial takes you through an interactive experience building a sample solu
1313

1414
## Prerequisites
1515

16-
- [.NET 8.0](https://dotnet.microsoft.com/download) or later versions.
17-
- A text editor or code editor of your choice.
16+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic.md)]
1817

1918
## Creating the source project
2019

docs/core/tutorials/creating-app-with-plugin-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This tutorial shows you how to create a custom <xref:System.Runtime.Loader.Assem
2020
2121
## Prerequisites
2222

23-
- Install the [.NET SDK](https://dotnet.microsoft.com/download).
23+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic.md)]
2424

2525
## Create the application
2626

docs/core/tutorials/library-with-visual-studio-code.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ When you create a class library, you can distribute it as a third-party componen
1313

1414
## Prerequisites
1515

16-
* [Visual Studio Code](https://code.visualstudio.com/) with [C# Dev Kit extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) installed.
17-
18-
For information about how to install extensions on Visual Studio Code, see [VS Code Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery).
19-
20-
* The [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0).
16+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic-winget.md)]
2117

2218
## Create a class library project
2319

docs/core/tutorials/with-visual-studio-code.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ This tutorial shows how to create and run a .NET console application by using Vi
99

1010
## Prerequisites
1111

12-
* [Visual Studio Code](https://code.visualstudio.com/) with [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) installed.
13-
14-
For information about how to install extensions on Visual Studio Code, see [VS Code Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery).
15-
16-
* The [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0).
12+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic-winget.md)]
1713

1814
## Create the app
1915

docs/csharp/asynchronous-programming/cancel-an-async-task-or-a-list-of-tasks.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ This tutorial covers:
1919
2020
## Prerequisites
2121

22-
This tutorial requires the following:
23-
24-
- [.NET 5 or later SDK](https://dotnet.microsoft.com/download/dotnet/5.0)
25-
- Integrated development environment (IDE)
26-
- [We recommend Visual Studio or Visual Studio Code](https://visualstudio.microsoft.com)
22+
[!INCLUDE [Prerequisites](../../../includes/prerequisites-basic.md)]
2723

2824
### Create example application
2925

docs/csharp/fundamentals/tutorials/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In this tutorial, you'll build a console application and see the basic object-or
99

1010
## Prerequisites
1111

12-
[!INCLUDE [Prerequisites](../../includes/prerequisites.md)]
12+
[!INCLUDE [Prerequisites](../../../../includes/prerequisites-basic-winget.md)]
1313

1414
## Create your application
1515

docs/csharp/fundamentals/tutorials/inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This tutorial introduces you to inheritance in C#. Inheritance is a feature of o
1010

1111
## Prerequisites
1212

13-
[!INCLUDE [Prerequisites](../../includes/prerequisites.md)]
13+
[!INCLUDE [Prerequisites](../../../../includes/prerequisites-basic-winget.md)]
1414

1515
## Running the examples
1616

docs/csharp/fundamentals/tutorials/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this tutorial, you'll learn how to:
1717
1818
## Prerequisites
1919

20-
[!INCLUDE [Prerequisites](../../includes/prerequisites.md)]
20+
[!INCLUDE [Prerequisites](../../../../includes/prerequisites-basic-winget.md)]
2121

2222
This tutorial assumes you're familiar with C# and .NET, including either Visual Studio or the .NET CLI.
2323

0 commit comments

Comments
 (0)