From 8f291426a6082c386a5a3824def833b77a4069b6 Mon Sep 17 00:00:00 2001 From: Timo Notheisen <65653426+tnotheis@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:01:47 +0200 Subject: [PATCH] Make C# build fail in case of nullability warnings (#690) * chore: make compiler treat nullability warnings as errors * chore: add more warnings --- Directory.Build.props | 6 ++++++ Modules/Directory.Build.props | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Directory.Build.props b/Directory.Build.props index 80298b7fee..99afc96482 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,5 +5,11 @@ Backbone.$(MSBuildProjectName) $(AssemblyName.Replace(" ", "_")) enable + + CS8597,CS8600,CS8601,CS8602,CS8603,CS8604,CS8605,CS8607,CS8608,CS8609,CS8610,CS8611,CS8612,CS8613,CS8614,CS8615, + CS8616,CS8617,CS8618,CS8619,CS8620,CS8621,CS8622,CS8624,CS8625,CS8629,CS8631,CS8633,CS8634,CS8643,CS8644,CS8645, + CS8655,CS8667,CS8670,CS8714,CS8762,CS8763,CS8764,CS8765,CS8766,CS8767,CS8768,CS8769,CS8770,CS8774,CS8776,CS8775, + CS8777,CS8819,CS8824,CS8825,CS8847 + diff --git a/Modules/Directory.Build.props b/Modules/Directory.Build.props index de3e097997..b14a3224ee 100644 --- a/Modules/Directory.Build.props +++ b/Modules/Directory.Build.props @@ -5,5 +5,11 @@ Backbone.Modules.$(MSBuildProjectName) $(AssemblyName.Replace(" ", "_")) enable + + CS8597,CS8600,CS8601,CS8602,CS8603,CS8604,CS8605,CS8607,CS8608,CS8609,CS8610,CS8611,CS8612,CS8613,CS8614,CS8615, + CS8616,CS8617,CS8618,CS8619,CS8620,CS8621,CS8622,CS8624,CS8625,CS8629,CS8631,CS8633,CS8634,CS8643,CS8644,CS8645, + CS8655,CS8667,CS8670,CS8714,CS8762,CS8763,CS8764,CS8765,CS8766,CS8767,CS8768,CS8769,CS8770,CS8774,CS8776,CS8775, + CS8777,CS8819,CS8824,CS8825,CS8847 +