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: 04-Using-GitHub-Copilot-with-CSharp/README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -47,30 +47,30 @@ We will review the steps to update the Weather BackEnd App by adding a new endpo
47
47
48
48
### 🤔 Step 0: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository
49
49
50
-
Once you open the repository in Codespaces, you will find a new browser window with a fully functional Codespace. Everything in this repository is contained within this one Codespace. In example, in the explorer panel, we can see the main code for the BackEnd and the FrontEnd project.
50
+
Once you open the repository in Codespaces, you will find a new browser window with a fully functional Codespace. Everything in this repository is contained within this one Codespace. For example, in the explorer panel, we can see the main code for the BackEnd and the FrontEnd project.
51
51
52
-

52
+

53
53
54
54
Before we run the project, let's use GitHub Copilot Chat to inquire about what the project is and the different components.
55
55
56
-
1. Open **GitHub Copilot Chat** from the main navigation bar.
56
+
1. Open **GitHub Copilot Chat** from the main navigation bar.
57
57
1. Type in `What is this project doing, and what are the key components?` and hit **Send***
58
58
59
59
GitHub Copilot Chat will now look at the entire project and give us a summary of what the projects do, what technology they use, and any of the key components in them.
60
60
61
61

62
62
63
-
From here, you can click on files to navigate to them and you can ask followup questions such as `What APIs are available?`.
63
+
From here, you can click on files to navigate to them and you can ask follow-up questions such as `What APIs are available?`.
64
64
65
65
66
66
### 🚀 Step 1: Run the projects
67
67
68
-
Now that we have context of what is in the project, let's run it and see it in action.
68
+
Now that we have context for what is in the project, let's run it and see it in action.
69
69
In order to run the BackEnd project, go to the "Run and Debug" panel, and select the "BackEnd" Project.
70
70
71
71

72
72
73
-
Start Debugging the selected project. The Weather API project, our BackEnd project will now be running in port 8080. We can copy the published url from the *Ports* panel
73
+
Start Debugging the selected project. The Weather API project, our BackEnd project will now be running on port 8080. We can copy the published url from the *Ports* panel
74
74
75
75

76
76
@@ -91,7 +91,7 @@ Add a breakpoint in line 24 (press F9) and refresh the browser with the Url to t
91
91
92
92

93
93
94
-
Pressing F10 we can debug step-by-step until line 32, where we can see the generated values. The application should have been generated samples Weather values for the next 5 days. The variable `forecast` has an array containing these values.
94
+
Pressing F10 we can debug step-by-step until line 32, where we can see the generated values. The application should have generated samples Weather values for the next 5 days. The variable `forecast` has an array containing these values.
95
95
96
96

97
97
@@ -150,7 +150,7 @@ Navigate to the end of the file and ask Copilot to generate a new record that in
150
150
// create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary
151
151
```
152
152
153
-
The generated code sould be similar to this one:
153
+
The generated code should be similar to this one:
154
154
155
155
```csharp
156
156
// create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary
@@ -179,7 +179,7 @@ In the following example, we added some extra blank lines after the previous end
179
179
180
180

181
181
182
-
***Important**: This prompt generates several lines of C# code. It's strongly adviced to check and review the generated code to verify that it works in the desired way.*
182
+
***Important**: This prompt generates several lines of C# code. It's strongly advised to check and review the generated code to verify that it works in the desired way.*
183
183
184
184
The generated code should look similar to this one:
0 commit comments