如何在Visual Studio 2015中启用汇编语言支持 [英] How to enable Assembly Language support in Visual Studio 2015

查看:209
本文介绍了如何在Visual Studio 2015中启用汇编语言支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Visual Studio 2015社区,并希望大部分使用32位的Assembly Languege.

I installed Visual Studio 2015 Community and want to use Assembly Languege in 32bit mostly.

推荐答案

尽管萨纳里斯怎么说,但 IS 还是有可能使用VS2015构建垃圾邮件.但是,这是您必须知道的技巧.

Despite what sanaris said, it IS possible to build masm using VS2015. However this is a trick you have to know.

您将需要右键单击该项目(而不是解决方案),然后选择构建依赖项/构建自定义项".从那里,选中"masm"框.

You will need to right click on the project (not the solution) and select "Build Dependencies/Build Customizations". From there, check the "masm" box.

就是这样.现在,将使用ml构建asm文件,并按预期方式将其链接到您的可执行文件中.

That's it. Now asm files will be built using ml and linked in to your executable as expected.

请注意,这与VS2010的说明基本相同,不同之处在于还有一层菜单(必须在Build Dependencies下查看).

Note that this is basically the sames as the instructions for VS2010, except that there is one more layer of menu (must look under Build Dependencies).

如果您已经将asm文件添加到您的项目中,则它们可能会被添加为不参与构建".您可以删除/重新添加它们,或右键单击文件,然后将项目类型"更改为"Microsoft宏汇编程序".

If you already have asm files added to your project, they probably got added as "Does not participate in build." You can either remove/re-add them, or right click on the file and change the "Item Type" to "Microsoft Macro Assembler."

这篇关于如何在Visual Studio 2015中启用汇编语言支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆