From a2dd970228fb887da75aa73fda6e43ef597aa5d1 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Tue, 21 Mar 2023 06:44:10 +0000 Subject: [PATCH] Add item for page 343 --- docs/errata/README.md | 2 +- docs/errata/improvements.md | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/errata/README.md b/docs/errata/README.md index 935c24d..3a6eff9 100644 --- a/docs/errata/README.md +++ b/docs/errata/README.md @@ -4,6 +4,6 @@ If you find any mistakes in the seventh edition, *C# 11 and .NET 7 - Modern Cros [**Errata** (35 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build. -[**Improvements** (22 items)](improvements.md): Changes to text or code that would improve the content. These are optional. +[**Improvements** (23 items)](improvements.md): Changes to text or code that would improve the content. These are optional. All errata and improvements will be included in the 8th edition planned for publishing in November 2023. To be included they must be submitted by mid-September 2023. diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index 1871f4e..3ceec1f 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -1,4 +1,4 @@ -**Improvements** (22 items) +**Improvements** (23 items) If you have suggestions for improvements, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com. @@ -14,6 +14,7 @@ If you have suggestions for improvements, then please [raise an issue in this re - [Page 241 - Defining flight passengers](#page-241---defining-flight-passengers) - [Page 251 - Setting up a class library and console application](#page-251---setting-up-a-class-library-and-console-application) - [Page 299 - Treating warnings as errors](#page-299---treating-warnings-as-errors) +- [Page 343 - Packaging a library for NuGet](#page-343---packaging-a-library-for-nuget) - [Page 444 - Connecting to a database](#page-444---connecting-to-a-database) - [Page 453 - Scaffolding models using an existing database](#page-453---scaffolding-models-using-an-existing-database) - [Page 533 - Building websites using ASP.NET Core](#page-533---building-websites-using-aspnet-core) @@ -284,6 +285,14 @@ Code in next edition: if (name == null) return; // must check for null to remove the warning ``` +# Page 343 - Packaging a library for NuGet + +In Step 3, you modify `SharedLibrary.csproj` to add some elements to control how the class library is turned into a NuGet package. If you rely on IntelliSense you could mislead you to use deprecated tag names. For example, `` is deprecated in favor of ``. + +In the next edition, I will add a warning about this and include a reference to the documentation. The tag names are documented in the **MSBuild Property** column in the table at in the following link: + +https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target + # Page 444 - Connecting to a database I wrote, "To connect to a SQLite database, we just need to know the database filename, set using the parameter `Filename`."