Sounds to me like the custom build rules for .asm files isn’t enabled. Right-click the project, Custom Build Rules, tick “Microsoft Macro Assembler”. With the “END clear” directive and disabling incremental linking I’m getting a clean build.
It’s different starting from VS2010:
- Right-click Project, Build customizations, tick “masm“.
- Right-click the
.asm
file, Properties, change Item Type to “Microsoft Macro Assembler“.