-
Notifications
You must be signed in to change notification settings - Fork 1.6k
CSharp Module Final Review #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…kflow explanations
…g detailed instructions on code completion and slash commands.
…Agent Mode, including coding tasks, context addition, and project improvements.
… Mode, including new API endpoint generation instructions and customization context.
… for Customization and Context
- Introduced a new settings.json file for cSpell configuration. - Revised section titles and content in README.md to enhance clarity. - Added images for better visual guidance in the README.
… clarity on running and debugging the backend project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR contains the final review of a C# module for GitHub Copilot, restructuring the content into 4 comprehensive sections with updated screenshots and GIFs. The module teaches developers how to effectively use GitHub Copilot with C# through hands-on exercises covering code completion, agent mode, and customization features.
Key changes include:
- Complete reorganization from step-based to section-based learning structure
- Addition of new features like Agent Mode and custom instructions
- Updated visual assets (screenshots and GIFs) to reflect current UI
Reviewed Changes
Copilot reviewed 3 out of 31 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Using-GitHub-Copilot-with-CSharp/README.md | Complete rewrite of the module content with 4 new sections, updated exercises, and modern GitHub Copilot features |
| Using-GitHub-Copilot-with-CSharp/011SlashCommandExplain.gif | Removed outdated GIF file |
| .vscode/settings.json | Added spell check configuration for "Blazor" |
Comments suppressed due to low confidence (1)
Using-GitHub-Copilot-with-CSharp/README.md:262
- The code comment appears to contain a spelling error: 'paremeter' should be 'parameter'.
By supplying Copilot with detailed project context, instructions files significantly improve the relevance and accuracy of its code suggestions. For example, if your project uses Blazor and ASP.NET Core, Copilot can generate components that follow your preferred structure, use modern C# features, and adhere to your naming conventions. This leads to more consistent code and reduces the need for manual corrections or lengthy code reviews.
| <img src="./images/003RunBackEndProject.jpg" alt="Run and Debug in the Panel"> | ||
| </div> | ||
|
|
||
| 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. |
Copilot
AI
Jul 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'weatherforcast' is misspelled. It should be 'weatherforecast' to match the correct endpoint name used elsewhere in the documentation.
| 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. | |
| 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. |
| 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. | ||
|
|
||
| <div align="left"> | ||
| <img src="./images/004rundebugURL.jpg" alt="Run and Debug Output" |
Copilot
AI
Jul 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image tag is missing the closing > and width/height attributes for consistency with other images in the document.
| <img src="./images/004rundebugURL.jpg" alt="Run and Debug Output" | |
| <img src="./images/004rundebugURL.jpg" alt="Run and Debug Output" width="500" height="300"> |
|
|
||
| Add a breakpoint in line 24 (press F9) and refresh the browser with the Url to test the endpoint. The browser should not show the weather forecast, and in the Visual Studio Editor we can see how the program execution was paused at line 24. | ||
| ```csharp | ||
| // create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary |
Copilot
AI
Jul 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'request' should be 'requests' to maintain proper grammar in the comment.
| // create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary | |
| // create a new internal record named WeatherForecastByCity that requests the following parameters: City, Date, TemperatureC, Summary |
C Sharp Module ready for final review: