After upgrading to Visual Studio 17.12.3, code is generating errors in Blazor program targeting .NET 8 that were not present before upgrade. In addition, the errors are not present in Release mode, but when I switch to debug, the errors and warnings appear. Furthermore, switching back to Release mode does not make them disappear. The following are snaps from Release, then debug mode.
Release
Debug
An example of code generating errors:
Another example



