Non-obsoletion warnings as errors in Release. (#42983)

* Non-obsoletion warnings as errors in Release.

* Add two other obsoletions related to collection expressions.
These are not present in the codebase, but may become so in the future.

* Exempt NU1903 so the project can't mysteriously stop building.

* Fix some FULL_RELEASE mistakes.

* diff fix

* Resharper caught this one. Note to self: Wire up resharper to CI in another PR.
This commit is contained in:
Moony
2026-06-29 12:43:54 +02:00
committed by Coryler
parent 94a329fb5c
commit f421221a00
7 changed files with 22 additions and 4 deletions
+5
View File
@@ -9,4 +9,9 @@
<IsPackable Condition="'$(IsPackable)' == ''">false</IsPackable>
<Nullable Condition="'$(Nullable)' == ''">enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>CS0618,CS0672,CS0612,CS1062,CS1064,NU1903</WarningsNotAsErrors>
</PropertyGroup>
</Project>