Skip to content

Commit e3ff263

Browse files
committed
Update documentation to reflect .NET 10 support and correct references to .NET runtime
1 parent 79237ca commit e3ff263

9 files changed

Lines changed: 23 additions & 23 deletions

File tree

learn-pr/wwl-language/csharp-arrays-operations/includes/2-exercise-sort-reverse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ If you completed other Microsoft Learn modules in this C# series on your own com
7070
```
7171
7272
> [!NOTE]
73-
> This example uses [**Collection expression syntax**](https://devblogs.microsoft.com/dotnet/refactor-your-code-with-collection-expressions/), introduced in C# 12.
73+
> This example uses [**Collection expression syntax**](https://devblogs.microsoft.com/dotnet/refactor-your-code-with-collection-expressions/), introduced in C# 12 and supported in .NET 10.
7474
7575
1. Take a minute to review the `Array.Sort(pallets);` line from the previous code you added.
7676

learn-pr/wwl-language/csharp-arrays-operations/includes/3-exercise-clear-resize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `Array.Resize()` method, on the other hand, allows you to add or remove elem
2525
```
2626

2727
> [!NOTE]
28-
> This example uses [**Collection expression syntax**](https://devblogs.microsoft.com/dotnet/refactor-your-code-with-collection-expressions/), introduced in C# 12.
28+
> This example uses [**Collection expression syntax**](https://devblogs.microsoft.com/dotnet/refactor-your-code-with-collection-expressions/), introduced in C# 12 and supported in .NET 10.
2929
3030
1. Take a minute to focus on the line of code `Array.Clear(pallets, 0, 2);`.
3131

learn-pr/wwl-language/csharp-arrays/includes/2-exercise-array-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ You can initialize an array during declaration just like you would a regular var
263263
string[] fraudulentOrderIDs = [ "A123", "B456", "C789" ];
264264
```
265265
266-
This example uses the **Collection expression** syntax, which was introduced in C# 12.
266+
This example uses the **Collection expression** syntax, which was introduced in C# 12 and is supported in .NET 10.
267267
268268
You may also see an older syntax used to initialize an array.
269269

learn-pr/wwl-language/guided-project-arrays-iteration-selection/includes/3-exercise-create-arrays-foreach-loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ In this task, you review the code that's provided as a Starter project for this
149149
The `dotnet run` command instructs the compiler to build your application and then, as long as there were no build errors, it runs your compiled code.
150150

151151
> [!IMPORTANT]
152-
> The Starter project targets .NET 8 (in the Starter.csproj file). If you don't have .NET 8 installed, the `dotnet run` command will generate an error. You can either install the .NET 8 SDK (recommended), or you can change the target framework in the Starter.csproj file to align with the version of .NET that you have installed in your environment.
152+
> The Starter project targets .NET 10 (in the Starter.csproj file). If you don't have .NET 10 installed, the `dotnet run` command will generate an error. You can either install the .NET 10 SDK (recommended), or you can change the target framework in the Starter.csproj file to align with the version of .NET that you have installed in your environment.
153153

154154
1. Verify that your application produced the following output:
155155

learn-pr/wwl-language/implement-visual-studio-code-debugging-tools/6-examine-launch-configurations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ quiz:
2929
explanation: "Correct. The name attribute specifies the display name for the configuration. The value assigned to name appears in the controls panel at the top of the RUN AND DEBUG view."
3030
- content: "A developer is working on a launch configuration. What is the **preLaunchTask** attribute used for?"
3131
choices:
32-
- content: "To specify the path of the application dll or .NET Core host executable to launch."
32+
- content: "To specify the path of the application dll or .NET host executable to launch."
3333
isCorrect: false
34-
explanation: "Incorrect. The **program** attribute specifies the path of the application dll or .NET Core host executable to launch."
34+
explanation: "Incorrect. The **program** attribute specifies the path of the application dll or .NET host executable to launch."
3535
- content: "To specify a task to run before debugging your program."
3636
isCorrect: true
3737
explanation: "Correct. The **preLaunchTask** attribute specifies a task to run before debugging the program. The task itself can be found in the tasks.json file, which is in the `.vscode` folder along with the launch.json file. Specifying a prelaunch task of **build** runs a `dotnet build` command before launching the application."

learn-pr/wwl-language/implement-visual-studio-code-debugging-tools/includes/3-exercise-run-code-debug-environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ A code debugger can be used to pause and resume code execution, examine variable
77
> [!NOTE]
88
> Debugger interaction with the runtime environment is an advanced topic. In addition, understanding how the debugger works behind the scenes isn't a requirement for using the debugger. However, the following description may satisfy your curiosity.
99
10-
The Visual Studio Code debugger for C# uses the .NET Core runtime to launch and interact with an application. When you start the debugger, it creates a new instance of the runtime and runs the application within that instance. The runtime includes an application programming interface (API), which the debugger uses to attach to the running process (your application).
10+
The Visual Studio Code debugger for C# uses the .NET runtime to launch and interact with an application. When you start the debugger, it creates a new instance of the runtime and runs the application within that instance. The runtime includes an application programming interface (API), which the debugger uses to attach to the running process (your application).
1111

12-
Once your application is running and the debugger is attached, the debugger communicates with the running process using the .NET Core runtime's debugging APIs and a standard debug protocol. The debugger can interact with the process (the application running within the .NET runtime instance) by setting breakpoints, stepping through code, and inspecting variables. Visual Studio Code's debugger interface enables you to navigate the source code, view call stacks, and evaluate expressions.
12+
Once your application is running and the debugger is attached, the debugger communicates with the running process using the .NET runtime's debugging APIs and a standard debug protocol. The debugger can interact with the process (the application running within the .NET runtime instance) by setting breakpoints, stepping through code, and inspecting variables. Visual Studio Code's debugger interface enables you to navigate the source code, view call stacks, and evaluate expressions.
1313

1414
The most common way to specify a debug session is a launch configuration in the launch.json file. This approach is the default option enabled by the debugger tools. For example, if you create a C# console application and select **Start Debugging** from the **Run** menu, the debugger uses this approach to launch, attach to, and then interact with your application.
1515

@@ -144,7 +144,7 @@ The **Run** menu includes the option to start a debug session.
144144
145145
1. Notice the messages about loading .NET resources and your Debug101 application.
146146
147-
The first two messages report loading the .NET Core library and then your Debug101 application.
147+
The first two messages report loading the .NET library and then your Debug101 application.
148148
149149
```output
150150
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.4\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
@@ -183,7 +183,7 @@ During the remainder of this module, you'll use the Visual Studio Code debugger
183183
184184
Here are a few important things to remember from this unit:
185185
186-
- The Visual Studio Code debugger for C# uses the .NET Core runtime to launch and interact with an application.
186+
- The Visual Studio Code debugger for C# uses the .NET runtime to launch and interact with an application.
187187
- The Visual Studio Code **Run** menu has options to start an application with and without the debugger attached.
188188
- The **Debug toolbar** includes a button to **Stop** a running process.
189189
- The RUN AND DEBUG view includes an option to start debugging an application.

learn-pr/wwl-language/implement-visual-studio-code-debugging-tools/includes/6-examine-launch-configurations.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The `name` attribute specifies the display name for the launch configuration. Th
1818

1919
### Type
2020

21-
The `type` attribute specifies the type of debugger to use for the launch configuration. A value of `codeclr` specifies the debugger type for .NET 5+ and .NET Core applications (including C# applications).
21+
The `type` attribute specifies the type of debugger to use for the launch configuration. A value of `codeclr` specifies the debugger type for .NET 5+ applications (including C# applications).
2222

2323
### Request
2424

@@ -30,7 +30,7 @@ The `preLaunchTask` attribute specifies a task to run before debugging your prog
3030

3131
### Program
3232

33-
The `program` attribute is set to the path of the application dll or .NET Core host executable to launch.
33+
The `program` attribute is set to the path of the application dll or .NET host executable to launch.
3434

3535
This property normally takes the form: `${workspaceFolder}/bin/Debug/<target-framework>/<project-name.dll>`.
3636

@@ -39,10 +39,10 @@ Where:
3939
- `<target-framework>` is the framework that the debug project is being built for. This value is normally found in the project file as the 'TargetFramework' property.
4040
- `<project-name.dll>` is the name of debugged project's build output dll. This property is normally the same as the project file name but with a '.dll' extension.
4141

42-
For example: `${workspaceFolder}/bin/Debug/net7.0/Debug101.dll`
42+
For example: `${workspaceFolder}/bin/Debug/net10.0/Debug101.dll`
4343

4444
> [!NOTE]
45-
> The **.dll** extension indicates that this file is a dynamic link library (dll) file. If your project is named Debug101, a file named **Debug101.dll** is created when a build task compiles your program using the Program.cs and Debug101.csproj files. You can find the **Debug101.dll** file in the EXPLORER view by expanding the "bin" and "Debug" folders, and then opening a folder that represents the .NET framework used by your code project, such as "net7.0". The .NET Framework version is specified in your .csproj file.
45+
> The **.dll** extension indicates that this file is a dynamic link library (dll) file. If your project is named Debug101, a file named **Debug101.dll** is created when a build task compiles your program using the Program.cs and Debug101.csproj files. You can find the **Debug101.dll** file in the EXPLORER view by expanding the "bin" and "Debug" folders, and then opening a folder that represents the .NET framework used by your code project, such as "net10.0". The .NET Framework version is specified in your .csproj file.
4646
4747
### Cwd
4848

@@ -118,7 +118,7 @@ The following example shows how you could configure the launch.json file to incl
118118
"type": "coreclr",
119119
"request": "launch",
120120
"preLaunchTask": "buildProject123",
121-
"program": "${workspaceFolder}/Project123/bin/Debug/net7.0/Project123.dll",
121+
"program": "${workspaceFolder}/Project123/bin/Debug/net10.0/Project123.dll",
122122
"args": [],
123123
"cwd": "${workspaceFolder}/Project123",
124124
"console": "internalConsole",
@@ -129,7 +129,7 @@ The following example shows how you could configure the launch.json file to incl
129129
"type": "coreclr",
130130
"request": "launch",
131131
"preLaunchTask": "buildProject456",
132-
"program": "${workspaceFolder}/Project456/bin/Debug/net7.0/Project456.dll",
132+
"program": "${workspaceFolder}/Project456/bin/Debug/net10.0/Project456.dll",
133133
"args": [],
134134
"cwd": "${workspaceFolder}/Project456",
135135
"console": "internalConsole",

learn-pr/wwl-language/install-configure-visual-studio-code/includes/5-exercise-configure-visual-studio-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To install the C# Dev Kit extension for Visual Studio Code, complete the followi
3535
This extension should install in 30-40 seconds. When the installation is complete, the Install button changes to Installed.
3636

3737
> [!NOTE]
38-
> You may see notifications appear when installing the C# Dev Kit extension. Ignore the notification asking you to "log in", and close the notification telling you "The .NET Core SDK cannot be located". You install the .NET SDK in the next unit.
38+
> You may see notifications appear when installing the C# Dev Kit extension. Ignore the notification asking you to "log in", and close the notification telling you "The .NET SDK cannot be located". You install the .NET SDK in the next unit.
3939
4040
1. Close the Get Started with C# Dev Kit page in the Editor.
4141

learn-pr/wwl-language/install-configure-visual-studio-code/includes/6-exercise-install-dotnet.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@ Use the following steps to complete this section of the exercise:
2222

2323
If a version of .NET is installed, you should see a response message listing the version number similar to the following:
2424

25-
`9.0.301`
25+
`10.0.100`
2626

2727
1. Close the Terminal panel.
2828

2929
## Install the .NET SDK
3030

31-
Having one of the latest supported versions of the .NET SDK installed is recommended. Although .NET 6 and 7 are also supported, .NET 8 (long term support) and .NET 9 (short term support) include improvements that you may find helpful.
31+
Having one of the latest supported versions of the .NET SDK installed is recommended. Although .NET 8 and 9 are also supported, .NET 10 (long term support) includes the latest improvements and features.
3232

3333
Visual Studio Code and the C# Dev Kit helps you to install the .NET SDK.
3434

3535
> [!NOTE]
36-
> The C# training series that's available on Microsoft Learn was developed using .NET 8, and is compatible with .NET 8 and later versions. Ensure that you have either .NET 8 or .NET 9 installed if you plan on completing this training.
36+
> The C# training series that's available on Microsoft Learn was developed using .NET 10, and is compatible with .NET 10 and later versions. Ensure that you have .NET 10 installed if you plan on completing this training.
3737
3838
Use the following steps to complete this section of the exercise:
3939

4040
1. On the View menu, select **Command Palette**.
4141

4242
1. At the Command Palette prompt, type **.NET: Install** and then select **.NET: Install New .NET SDK**.
4343

44-
1. Under **Latest**, ensure that **.NET 9** is selected, and then select **Install**.
44+
1. Under **Latest**, ensure that **.NET 10** is selected, and then select **Install**.
4545

4646
1. Wait for the .NET SDK to download and install.
4747

@@ -67,9 +67,9 @@ Use the following steps to complete this section of the exercise:
6767

6868
1. Verify that the .NET SDK is installed.
6969

70-
If you installed the .NET 9 SDK, the version number will begin with `9.`, for example: `9.0.301`.
70+
If you installed the .NET 10 SDK, the version number will begin with `10.`, for example: `10.0.100`.
7171

72-
You may see a more recent version number, that's okay. You can also use .NET 8 to complete this training.
72+
You may see a more recent version number, that's okay.
7373

7474
1. Close the Terminal panel.
7575

0 commit comments

Comments
 (0)