Part 1:. Add <TreatWarningsAsErrors>true into Directory.Build.props, no need to add it everywhere, rather disable it explicitly if for some weird reason you need to