If you find any mistakes in the sixth edition, C# 10 and .NET 6 - Modern Cross-Platform Development, or if you have suggestions for improvements, then please raise an issue in this repository or email me at markjprice (at) gmail.com.
In Step 3, the project template name has been changed from Console Application to Console App in the final release of Visual Studio 2022, as shown in the following screenshot:
In Step 14, I say that the first time you open a code file, Visual Studio Code may have to download and install C# dependencies and so on. This will not happen if you do not trust the workspace.
At the top of the window, in the blue bar, click Manage, as shown in the following screenshot:
Click the Trust button, as shown in the following screenshot:
You will then trust the workspace and extensions will activate as described in the book.
In Step 5, I say, "If you are using Visual Studio, then navigate to Project | Arguments Properties, select the Debug tab, and in the Application arguments box, enter some arguments".
Microsoft changed the user interface of Visual Studio 2022 after that step was written.
It should now say, "If you are using Visual Studio, then navigate to Project | Arguments Properties, select the Debug tab, click Open debug launch profiles UI, and in the Command line arguments box, enter some arguments", as shown in the following screenshot:
In Figure 2.6, it is difficult to see the hyphen in the second argument in the PDF edition (shown in the screenshot below) and impossible to see it in the Kindle edition.
In Step 5, it would have been clearer if I had written out the arguments as I did in Step 6 instead of relying on Amazon's image processing to clearly show the hyphen!
For example, firstarg second-arg third:arg "fourth arg"
.
In Exercise 2.3, I say, "create a console application project named Exercise02". I should have said, "create a console application project named Exercise03".