Compiling assembly in Visual Studio

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:

  1. Right-click Project, Build customizations, tick “masm“.
  2. Right-click the .asm file, Properties, change Item Type to “Microsoft Macro Assembler“.

Leave a Comment