How to compile to real architecture only (No PTX) via Visual Studio 2022

Update : What I remark is the PTX is enabled only when running debugging via Nsight Debugging (Next-Gen). In standard debugging via Start on Visual Studio, it’s disabled.