How to build .exe files with VS Code

I’d like to build a .exe file out of some of my projects, but I dunno how to make that work with VS Code.