-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Real-World Web Development with .NET 10 - Second Edition
By :
This section is about how to find quality information about programming on the web. You will learn about Microsoft Learn documentation, including its new MCP server for integration with AI systems, getting help while coding and using dotnet commands, getting help from fellow readers in the book’s Discord channel, searching the .NET source code for implementation details, and finally, making the most of modern AI tools like GitHub Copilot.
This is useful information that all readers should know and refer to throughout reading any of my .NET 10 books, especially if you are new to .NET.
This section has been made into a separate Appendix C, both to make it reusable in all four of my .NET 10 books, and to avoid wasting pages in the print book for those readers who have already read it from one of the other books.
An online Markdown version of Appendix C is available in the book’s GitHub repository at the following link: https://github.com/markjprice/markjprice/blob/main/articles/getting-help.md. Since this is hosted in my personal GitHub account, I can keep it updated more frequently throughout the three-year support period of .NET 10.
As part of this book’s free exclusive benefits, you can also access a PDF version of the book, which includes Appendix C. You can unlock it and the other benefits at the following link: https://packtpub.com/unlock, then search for this book by name. Ensure it’s the correct edition. Have your purchase invoice ready before you start.
Now let’s review two of the most important topics in Appendix C, Microsoft’s official documentation and its MCP server, and how to ask for help in this book’s Discord channel.
The definitive resource for getting help with Microsoft developer tools and platforms is in the technical documentation on Microsoft Learn, and you can find it at the following link: https://learn.microsoft.com/en-us/docs.
“One of the most ambitious and impactful projects our engineers have built recently is Ask Learn, an API that provides generative AI capabilities to Microsoft Q&A.” – Bob Tabor, Microsoft’s Skilling organization
You can read about Ask Learn at the following link:
Microsoft has also created an MCP server for its official documentation so that chatbots can be configured to use the official documentation as a tool in their responses. The MCP server is accessible to any code editor or tool that supports the Model Context Protocol (MCP) using the following endpoint:
https://learn.microsoft.com/api/mcp
You can install it for VS Code and Cursor using the following link: https://github.com/MicrosoftDocs/mcp?tab=readme-ov-file#-installation--getting-started.
For Visual Studio, at the time of writing in June 2025, you must configure it manually using the following steps:
MatureWeb folder, create a file named .mcp.json..mcp.json file, define the endpoint for the Microsoft Docs MCP server, as shown in the following JSON:
{
"servers": {
"microsoft.docs.mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
MatureWeb solution is open in Solution Explorer.microsoft_docs_search, as shown in Figure 1.16:
Figure 1.16: Configuring Copilot Chat tools
Northwind.UnitTests project does, as shown in the following query:
What does the Northwind.UnitTests project do?
5 references
Read 5 code snippets for 'test', 'unit test', ...
The Northwind.UnitTests project is a test project that uses the xUnit framework to perform unit and integration tests on the Northwind application. Specifically, it tests the Northwind.EntityModels and Northwind.DataContext projects. The tests include:
• Verifying that the database connection can be established.
• Checking that the number of categories in the database matches the expected count.
• Ensuring that the product with ID 1 is named "Chai".
The project references xUnit and related test packages, and it depends on the Northwind.DataContext project for database access. These tests help ensure that the application's data access layer is functioning correctly.
int data type in the official documentation, as shown in the following query:
What remarks about int are in the docs?
Here are some key remarks about int in the official documentation:
• int in C# is a 32-bit signed integer, represented by System.Int32, with a value range from -2,147,483,648 to 2,147,483,647.
• int is an immutable value type.
• Integer division truncates the result, and the remainder can be obtained with the % operator.
• int has minimum and maximum limits; exceeding these causes overflow or underflow, wrapping the value.
• int is a value type (struct) and derives from System.Object.
• Type conversions involving int may require explicit casting, and overflow can occur if the value is out of range.
You can read more about the Microsoft Learn MCP server at the following link: https://github.com/MicrosoftDocs/mcp.
Asking questions in programming forums and Discord channels is an art as much as it is a science. To maximize your chances of receiving a helpful answer, there’s a blend of clarity, specificity, and community awareness that you should aim for.
Here are some tips for asking questions:
Oddly, I’ve been seeing more and more examples of readers taking photos of their screens and posting those. These are harder to read and limited in what they can show. It’s better to copy and paste the text of your code or the error message so that others can copy and paste it themselves. Alternatively, at least take a high-resolution screenshot instead of a photo with your phone camera at a jaunty angle!
`public void`, and surround code blocks with three backticks with optional language code, as shown in the following code:
```cs
using static System.Console;
WriteLine("This is C# formatted code.");
```
Good practice: After the three backticks that start a code block in Markdown, specify a language short name like cs, csharp, js, javascript, json, html, css, cpp, xml, mermaid, python, java, ruby, go, sql, bash, or shell.
To learn how to format text in Discord channel messages, see the following link: https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline.
Incorporating these approaches when asking questions not only increases your likelihood of getting a useful response but also contributes positively to the community by showing respect for others’ time and effort.
Good practice: Never just say “Hello” as a message on any chat system. You can read why at the following link: https://nohello.net/. Similarly, don’t ask to ask: https://dontasktoask.com/.
Change the font size
Change margin width
Change background colour