This SO question / answer is just for C#.
I tried several options, but none of them worked. Among others, I tried:
- Project -> Properties -> Linker -> Debugging -> Generate Debug Info -> No
Project -> Properties -> Linker -> Debugging -> Generate Program Database File -> No
Project -> Properties -> C/C++ -> General -> Debug Information Format -> None
Project -> Properties -> C/C++ -> Output Files -> Program Database File Name ->
Project -> Properties -> C/C++ -> Command Line -> Additional Options -> /DEBUG:NONE
How can I stop Visual Studio creating a PDB file (and thus adding a link to it in the executable) for my C/C++ projects?