Turned off warnings as errors in Chapters 1-5, relying instead on Directory.props value.
MODIFY
src/Chapter01/Chapter01.csproj
src/Chapter01/Chapter01.csproj
<StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningsAsErrors />
</PropertyGroup>
<Import Project="..\Versioning.targets" />
<ItemGroup>

MODIFY
src/Chapter02/Chapter02.csproj
src/Chapter02/Chapter02.csproj
<StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningsAsErrors />
</PropertyGroup>
<Import Project="..\Versioning.targets" />
<ItemGroup>

MODIFY
src/Chapter03/Chapter03.csproj
src/Chapter03/Chapter03.csproj
<StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningsAsErrors />
</PropertyGroup>
<Import Project="..\Versioning.targets" />
<ItemGroup>

MODIFY
src/Chapter04/Chapter04.csproj
src/Chapter04/Chapter04.csproj
<StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningsAsErrors />
<WarningsNotAsErrors>1030</WarningsNotAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(IgnoreExpectedWarnings)'=='true'">

MODIFY
src/Chapter05/Chapter05.csproj
src/Chapter05/Chapter05.csproj
<StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningsAsErrors />
</PropertyGroup>
<Import Project="..\Versioning.targets" />
<ItemGroup>

Turned off warnings as errors in Chapters 1-5, relying instead on Directory.props value.