以前用vs2008的时候把.asm文件加入到工程后会自动提示使用masm生成规则,现在换城vs2010后添加.asm文件没有默认的处理规则。网上找到个方法是英文的,本人用的vs2010是中文的,上面的英文菜单一个个核对才找到...
这个就是解决方法了:
摘抄如下:
Thanks for reporting this issue. The issue you are experiencing is by design. The reason that happens is because the "masm" rule is not enabled for your project. To enable the masm rule, right click on the project choose "Build Customizations" and check "masm". After hitting ok on the dialog you will be able to choose "Microsoft Macro Assembler" in the "Item Type" drop down.
解决方法:右键菜单里选择“Build Customizations”,然后把masm那个选项勾上即可
(Build Customizations了,vs2010翻译:“生成自定义”,vs2008翻译:“自定义生成规则”)
把asm文件加入到工程的时候会自动添加masm生成规则了(如果已经添加了移除再次添加)