Skip to content

Commit 0e549fd

Browse files
committed
Add item for page 386
1 parent 33e6276 commit 0e549fd

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

docs/errata/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If you find any mistakes in the eighth edition, *C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals*, or if you have suggestions for improvements, then please [raise an issue in this repository](https://github.com/markjprice/cs12dotnet8/issues) or email me at markjprice (at) gmail.com.
44

5-
[**Errata** (6 items)](errata.md): Typos, tool user interface and behavior changes, or mistakes in code that would cause a compilation error that prevents a successful build.
5+
[**Errata** (7 items)](errata.md): Typos, tool user interface and behavior changes, or mistakes in code that would cause a compilation error that prevents a successful build.
66

77
[**Improvements** (8 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
88

docs/errata/errata.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Errata** (6 items)
1+
**Errata** (7 items)
22

33
If you find any mistakes, then please [raise an issue in this repository](https://github.com/markjprice/cs12dotnet8/issues) or email me at markjprice (at) gmail.com.
44

@@ -8,6 +8,7 @@ If you find any mistakes, then please [raise an issue in this repository](https:
88
- [Page 58 - Showing the compiler version](#page-58---showing-the-compiler-version)
99
- [Page 87 - Comparing double and decimal types](#page-87---comparing-double-and-decimal-types)
1010
- [Page 383 - Creating a console app to publish](#page-383---creating-a-console-app-to-publish)
11+
- [Page 386 - Publishing a self-contained app](#page-386---publishing-a-self-contained-app)
1112

1213
# Page 10 - Installing other extensions
1314

@@ -65,3 +66,24 @@ The RIDs should be as shown in the following markup:
6566
```
6667

6768
In the next edition, as well as fixing the RID values, I will link to the official documentation so that readers can confirm the current valid values. For example, for known RIDs: https://learn.microsoft.com/en-us/dotnet/core/rid-catalog#known-rids.
69+
70+
# Page 386 - Publishing a self-contained app
71+
72+
> Thanks to `mdj._` in the book's Discord channel for raising this issue on December 18, 2023.
73+
74+
Related to the [previous issue](#page-383---creating-a-console-app-to-publish), in Step 2, I tell the reader to "Enter a command to build and publish the self-contained release version of the console application for Windows 10". But the command uses the legacy RID value `win10-x64`, as shown in the following command:
75+
```
76+
dotnet publish -c Release -r win10-x64 --self-contained
77+
```
78+
79+
The command should be:
80+
```
81+
dotnet publish -c Release -r win-x64 --self-contained
82+
```
83+
84+
Any other references to `win10-x64`, like the folder name, should also be changed to `win-x64`.
85+
86+
Similarly, in Step 4, the command `dotnet publish -c Release -r osx.11.0-arm64 --self-contained` should be:
87+
```
88+
dotnet publish -c Release -r osx-arm64 --self-contained
89+
```
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dotnet publish -c Release -r win10-x64 --self-contained
1+
dotnet publish -c Release -r win-x64 --self-contained
22
dotnet publish -c Release -r osx-x64 --self-contained
3-
dotnet publish -c Release -r osx.11.0-arm64 --self-contained
3+
dotnet publish -c Release -r osx-arm64 --self-contained
44
dotnet publish -c Release -r linux-x64 --self-contained
55
dotnet publish -c Release -r linux-arm64 --self-contained

0 commit comments

Comments
 (0)