Late to the party here but VS 2022 has a Errors and warnings section. I added to the Suppress specific warnings section. Problem solved. I tried changing the warning level but it didn't change anything.