Skip to content

Commit d0a51ea

Browse files
authored
changed files by pdets auto publish service, publishid[5e703223-2889-4edd-b0a6-0710dc71680d] and do [publish].
1 parent 899ec4f commit d0a51ea

14 files changed

+34
-25
lines changed

learn-pr/wwl-language/csharp-readable-code/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/2-choose-variable-names.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Choose variable names that follow rules and conventions
44
metadata:
55
title: Choose variable names that follow rules and conventions
66
description: "Choose variable names that follow rules and conventions"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/3-exercise-comment-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Create effective code comments
44
metadata:
55
title: Exercise - Create effective code comments
66
description: "Exercise - Create effective code comments"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/4-exercise-use-whitespace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Use whitespace to make your code easier to read
44
metadata:
55
title: Exercise - Use whitespace to make your code easier to read
66
description: "Exercise - Use whitespace to make your code easier to read"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/5-challenge.yml renamed to learn-pr/wwl-language/csharp-readable-code/5-exercise-challenge-improve-code-readability.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Exercise - Complete a challenge activity to improve code readability
44
metadata:
55
title: Exercise - Complete a challenge activity to improve code readability
66
description: "Exercise - Complete a challenge activity to improve code readability"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 7
1414
content: |
15-
[!include[](includes/5-challenge.md)]
15+
[!include[](includes/5-exercise-challenge-improve-code-readability.md)]

learn-pr/wwl-language/csharp-readable-code/6-solution.yml renamed to learn-pr/wwl-language/csharp-readable-code/6-review-solution-code-readability-challenge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Review the solution to the improve code readability challenge activity
44
metadata:
55
title: Review the solution to the improve code readability challenge activity
66
description: "Review the solution to the improve code readability challenge activity"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 4
1414
content: |
15-
[!include[](includes/6-solution.md)]
15+
[!include[](includes/6-review-solution-code-readability-challenge.md)]

learn-pr/wwl-language/csharp-readable-code/7-knowledge-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/includes/2-choose-variable-names.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Conventions are suggestions that are agreed upon by the software development com
2020
- Variable names should be one or more entire words appended together. Don't use contractions because the name of the variable may be unclear to others who are reading your code. For example: `decimal orderAmount;`, NOT `decimal odrAmt;`.
2121
- Variable names shouldn't include the data type of the variable. You might see some advice to use a style like `string strMyValue;`. It was a popular style years ago. However, most developers don't follow this advice anymore and there are good reasons not to use it.
2222

23-
The example `string firstName;` follows all of these rules and conventions, assuming I want to use this variable to store data that represents someone's first name.
23+
The example `string firstName;` follows all of these rules and conventions, assuming you want to use this variable to store data that represents someone's first name.
2424

2525
## Variable name examples
2626

learn-pr/wwl-language/csharp-readable-code/includes/3-exercise-comment-code.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,32 @@ This module includes exercises that guide you through the process of building an
4141

4242
Notice that a command prompt in the Terminal panel displays the folder path for the current folder. For example:
4343

44-
```dos
44+
```PowerShell
4545
C:\Users\someuser\Desktop>
4646
```
4747
4848
> [!NOTE]
4949
> If you are working on your own PC rather than in a sandbox or hosted environment and you have completed other Microsoft Learn modules in this C# series, you may have already created a project folder for code samples. If that's the case, you can skip over the next step, which is used to create a console app in the TestProject folder.
5050
51-
1. At the Terminal command prompt, to create a new console application in a specified folder, type **dotnet new console -o ./CsharpProjects/TestProject** and then press Enter.
51+
1. At the Terminal command prompt, to create a new console application in a specified folder, enter the following prompt:
52+
53+
```dotnetcli
54+
dotnet new console -o ./CsharpProjects/TestProject
55+
```
5256
5357
This .NET CLI command uses a .NET program template to create a new C# console application project in the specified folder location. The command creates the CsharpProjects and TestProject folders for you, and uses TestProject as the name of your `.csproj` file.
5458
55-
1. In the EXPLORER panel, expand the **CsharpProjects** folder.
59+
If a message is displayed telling you that the files already exist, continue with the next steps. You'll reuse the existing project files.
60+
61+
1. In the EXPLORER view, expand the **CsharpProjects** folder.
62+
63+
You should see the **TestProject** folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
64+
65+
1. On the Visual Studio Code **File** menu, select **Open Folder**.
5666
57-
You should see the TestProject folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
67+
1. In the **Open Folder** dialog, select the **CsharpProjects** folder, and then select **Select Folder**.
5868
59-
1. In the EXPLORER panel, to view your code file in the Editor panel, select **Program.cs**.
69+
1. In the EXPLORER view, expand the TestProject folder, and then select **Program.cs**.
6070
6171
1. Delete the existing code lines.
6272
@@ -66,7 +76,7 @@ This module includes exercises that guide you through the process of building an
6676
6777
## Create and use code comments
6878
69-
In this task, you will try creating and removing various types of code comments.
79+
In this task, you will create and remove various types of code comments.
7080
7181
1. In the Visual Studio Code Editor panel, enter the following code:
7282
@@ -93,7 +103,7 @@ In this task, you will try creating and removing various types of code comments.
93103
94104
1. On the Visual Studio Code **File** menu, click **Save**.
95105
96-
1. In the EXPLORER panel, to open a Terminal at your TestProject folder location, right-click **TestProject**, and then select **Open in Integrated Terminal**.
106+
1. In the EXPLORER view, to open a Terminal at your TestProject folder location, right-click **TestProject**, and then select **Open in Integrated Terminal**.
97107
98108
1. At the Terminal command prompt, type **dotnet run** and then press Enter.
99109

0 commit comments

Comments
 (0)