Note: Right now I am converting from vs 2019 to vs 2022 due to setting differences, I am unable to solve this issue. Please click here for Error screenshot
I also check this setting but due to the setting difference, I am unable to fix this issue. https://stackoverflow.com/a/12262865/10988372
I want to solve this issue in Visual Studio 2022