Chapter 2. Building your first .NET Core applications
Listing 2.1. Program.cs from the Hello World application
Listing 2.2. hwapp.csproj from the Hello World console application
Listing 2.3. hwwebapp.csproj package reference to Microsoft.AspNetCore.All
Listing 2.4. Program.cs for an ASP.NET Core web application
Listing 2.5. Trimmed-down Startup.cs file for a Hello World web application
Listing 2.6. Add RuntimeIdentifiers to the hwapp.csproj file
Listing 2.7. Dockerfile for Hello World console application
Listing 2.8. Command to build Hello World console application container image
Listing 2.9. Running the Hello World console application Docker container
Listing 2.10. Modifying Program.cs for Docker container deployment
Listing 2.11. Modifying Dockerfile for Docker container deployment
Chapter 3. How to build with .NET Core
Listing 3.1. csproj showing the TargetFramework property
Listing 3.2. Contents of the CsvReader.cs file
Listing 3.3. Program.cs for CsvParser
Listing 3.4. A test of how order of properties works in MSBuild
Listing 3.5. Target declaration with no AfterTargets attribute set
Listing 3.6. Removing code file from compilation
Listing 3.7. Default definition for the Compile ItemGroup
Listing 3.8. Marvel.csv—contents taken from string in Program.cs
Listing 3.9. Program.cs modified to load Marvel.csv
Listing 3.10. Modifying a csproj to copy a file to the build output
Listing 3.11. Embedding a file in an assembly
Listing 3.12. Modifying Program.cs to read the embedded file