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: Using-GitHub-Copilot-with-CSharp/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,13 +91,13 @@ In the above exercises we achieved the following:
91
91
1. Ask GitHub Copilot in the chat pane to "run and debug" the backend project (you can also do this from the 'run and debug' panel in the editor). Start Debugging the selected project.
92
92
93
93
<divalign="left">
94
-
<imgsrc="./images/003RunBackEndProject.jpg"alt="Run and Debug in the Panel">
94
+
<imgsrc="./images/003RunBackEndProject.jpg"alt="Run and Debug in the Panel"width="300"height="300">
95
95
</div>
96
96
97
-
2. The BackEnd project for our Weather API will now be running in port 8080. If you used Copilot to Run and Debug, it will output the URL for you in the chat pane. Simply click the text and it will open a new tab with the published URL. Ensure that `/weatherforcast` is in the published URL.
97
+
2. The BackEnd project for our Weather API will now be running in port 8080. If you used Copilot to Run and Debug, it will output the URL for you in the chat pane. Simply click the text and it will open a new tab with the published URL. Ensure that `/weatherforecast` is in the published URL.
98
98
99
99
<divalign="left">
100
-
<img src="./images/004rundebugURL.jpg" alt="Run and Debug Output"
100
+
<imgsrc="./images/004rundebugURL.jpg"alt="Run and Debug Output"width="300"height="500">
101
101
</div>
102
102
103
103
If the URL is not loading properly, check the format and use the below format for the final URL:
@@ -112,10 +112,10 @@ https://< your url>.app.github.dev/weatherforecast
112
112
<imgsrc="./images/005ports.jpg"alt="port view in the editor"width="500"height="300">
113
113
</div>
114
114
115
-
3. In this next step we want to refactor some code and generate a new record for our Weather API. The goal is to add a new record that includes the name of the city. We are going to achieve this by asking Copilot directly from the file using code comments. From the file pane, navigate to the following path `SampleApp\BackEnd\Program.cs` and open `Program.cs`. Navigate to the end of the file and type in (or copy):
115
+
1. In this next step we want to refactor some code and generate a new record for our Weather API. The goal is to add a new record that includes the name of the city. We are going to achieve this by asking Copilot directly from the file using code comments. From the file pane, navigate to the following path `SampleApp\BackEnd\Program.cs` and open `Program.cs`. Navigate to the end of the file and type in (or copy):
116
116
117
117
```csharp
118
-
// create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary
118
+
// create a new internal record named WeatherForecastByCity that requests the following parameters: City, Date, TemperatureC, Summary
0 commit comments