It seems the compile args presented in the host project’s target file is not picking up in all cases.
For example, I did mention this flag. /Zc:char8_t- in the target file, but still the compiler was throwing errors related to char8_t conversion. The only way I can get rid of the errors is to mention that in VCToolsChain.cs file as mentioned.
I m not sure on the UBT invocation. I built through VS and ran through VS 2022. Do you mean the command line args that are configured in the project properties?
I m attaching the screen shot.