Skip to content

Commit b3f120b

Browse files
authored
Merge pull request #192 from microsoft/csharpmods
fix: correct typos and improve image attributes in README.md
2 parents 8e7100f + 632a8ce commit b3f120b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Using-GitHub-Copilot-with-CSharp/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ In the above exercises we achieved the following:
9191
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.
9292

9393
<div align="left">
94-
<img src="./images/003RunBackEndProject.jpg" alt="Run and Debug in the Panel">
94+
<img src="./images/003RunBackEndProject.jpg" alt="Run and Debug in the Panel" width="300" height="300">
9595
</div>
9696

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.
9898

9999
<div align="left">
100-
<img src="./images/004rundebugURL.jpg" alt="Run and Debug Output"
100+
<img src="./images/004rundebugURL.jpg" alt="Run and Debug Output" width="300" height="500">
101101
</div>
102102

103103
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
112112
<img src="./images/005ports.jpg" alt="port view in the editor" width="500" height="300">
113113
</div>
114114

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):
116116

117117
```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
119119
```
120120

121121
The output should be similar to this:

0 commit comments

Comments
 (0)