Skip to content

Latest commit

 

History

History
73 lines (37 loc) · 2.95 KB

File metadata and controls

73 lines (37 loc) · 2.95 KB

Errata for Pro ASP.NET Core 6

This file contains errors that are likely to prevent the code examples from working as described in ths book. See this file for small mistakes that I intend to correct in the next edition.

Chapter 4

On page 71, the package installed by Listing 4-16 isn't able to install the Bootstrap package because of an API change in the package hosting service. Use these commands to install a more recent version of the LibMan package:

dotnet tool uninstall --global Microsoft.Web.LibraryManager.Cli
dotnet tool install --global Microsoft.Web.LibraryManager.Cli --version 2.1.175

(Thanks to Stephan Keller for reporting this problem)


Chapter 5

On Page 83, when describing null state analysis, I wrote:

But if a variable’s type is string, then it can be assigned null values, which means you can confidently access the features it provides without needing to guard against null references.

This should be:

But if a variable’s type is string, then it cannot be assigned null values, which means you can confidently access the features it provides without needing to guard against null references.

(Thanks to Aidan Plunkitt for reporting this problem)


Chapter 7

On page 172, the package installed by Listing 7-35 isn't able to install the Bootstrap package because of an API change in the package hosting service. Use these commands to install a more recent version of the LibMan package:

dotnet tool uninstall --global Microsoft.Web.LibraryManager.Cli
dotnet tool install --global Microsoft.Web.LibraryManager.Cli --version 2.1.175

(Thanks to Stephan Keller for reporting this problem)


Chapter 15

On page 423, the package installed by Listing 15-32 isn't able to install the Bootstrap package because of an API change in the package hosting service. Use these commands to install a more recent version of the LibMan package:

dotnet tool uninstall --global Microsoft.Web.LibraryManager.Cli
dotnet tool install --global Microsoft.Web.LibraryManager.Cli --version 2.1.175

(Thanks to Stephan Keller for reporting this problem)


Chapter 17

On page 463, the dotnet sql-cache command is used, which relies on a command package for which I omitted installation instructions. Run this command to install the required package:

dotnet tool install --global dotnet-sql-cache --version 6.0.0

(Thanks to Abdul W Yousufzai for reporting this problem)


Chapter 18

On page 487, the package installed by Listing 18-14 isn't able to install the Bootstrap package because of an API change in the package hosting service. Use these commands to install a more recent version of the LibMan package:

dotnet tool uninstall --global Microsoft.Web.LibraryManager.Cli
dotnet tool install --global Microsoft.Web.LibraryManager.Cli --version 2.1.175

(Thanks to Stephan Keller for reporting this problem)