I have been searching around and everyone provides just a simple answer
Right-click the project, Custom Build Rules, tick \"Microsoft Macro Assembler\
Go to Project (you'll find it in the top menu) > Build Customizations...
And check the masm option.
Further, in some cases (like when working with x64), the linker might have some problems finding main. To solve that, you need to manually create an entry point by:
It should work fine after this