To get the most out of this book
You must know C# and how to program. Boolean logic, loops, and other basic programming constructs should be mastered, including object-oriented programming basics. Some knowledge of ASP.NET will be beneficial. Knowing how to read UML class and sequence diagrams is an asset, but not required.
The code samples and resources are available on GitHub (https://adpg.link/net8). The README.md
file at the root of the repository is filled with information to help you find the code and resources you are looking for.
Most links are shortened in the form of https://adpg.link/**** so readers of a physical copy of the book can easily type URLs quickly.
In the book, I use a mix of Visual Studio 2022 (which has a free version) and Visual Studio Code (free). I recommend that you use one or both of those. The IDE is unrelated to most of the content. You could use Notepad if you are impetuous enough (I don’t recommend that). Unless you install Visual Studio, which comes with the .NET SDK, you may need to install the .NET 8 SDK. The SDK comes with the dotnet CLI as well as the building tools for running and testing your programs. I develop on Windows, but you should be able to use another OS. OS-related topics are very limited, even inexistent. The code compiles on both Windows and Linux.
Download the example code files
The code for the book is hosted on GitHub at https://github.com/PacktPublishing/Architecting-ASP.NET-Core-Applications-3E. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781805123385.
Conventions used
There are a number of text conventions used throughout this book.
CodeInText
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: “Mount the downloaded WebStorm-10*.dmg
disk image file as another disk in your system.”
A block of code is set as follows:
public class FactTest
{
[Fact]
public void Should_be_equal()
{
var expectedValue = 2;
var actualValue = 2;
Assert.Equal(expectedValue, actualValue);
}
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public class AsyncFactTest
{
[Fact]
public async Task Should_be_equal()
{
var expectedValue = 2;
var actualValue = 2;
await Task.Yield();
Assert.Equal(expectedValue, actualValue);
}
}
Any command-line input or output is written as follows:
Passed! - Failed: 0, Passed: 23, Skipped: 0, Total: 23, Duration: 22 ms - MyApp.Tests.dll (net6.0)
Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: “Select System info from the Administration panel.”
Warnings or important notes appear like this.
Tips and tricks appear like this.