我需要安装Visual Studio 2017中的哪个组件才能获得MASM支持 - 这就是我现在想要的 [英] What component in Visual Studio 2017 do I need to install to get MASM support - that's all I want for now

查看:207
本文介绍了我需要安装Visual Studio 2017中的哪个组件才能获得MASM支持 - 这就是我现在想要的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了"桌面开发与C ++"新Visual Studio 2017中的选项。当我尝试创建"新项目"时,我没有看到MASM支持。没有其他"可选"的选择组件以保持我的安装
大小。 MASM支持绝对需要哪些其他组件。我现在只需要MASM支持,以便在我的硬盘驱动器上将安装大小保持在最低限度。

I just installed the "Desktop Development with C++" option in the new Visual Studio 2017. I did not see MASM support when I tried to create a "New Project". No other "Optional" components were selected to keep my install size down. What additional components are absolutely necessary for MASM support. I want nothing more than MASM support at this time to keep the install size at a minimum on my hard disk drive.

感谢您阅读

PS如果有一个Visual Studio团队读取这个,那么在未来的安装程序中包含对此的支持将会很不错。

P.S. On the off chance one of the Visual Studio team reads this, it would be nice to include support for this in a future installer.

推荐答案

Masm仍然是C / C ++工具集的扩展。因此没有单独的项目系统。

Masm is still and has always been an extension of the C/C++ toolset. So there is no separate project system for it.

要在项目中获得对它的支持,您需要安装已经完成的C / C ++支持,创建一个新的C / C ++项目,当它被创建时,你必须再做一步。打开解决方案资源管理器,右键单击
项目,找到悬停在它上面的Build Dependencies,然后选择Build Customisations。在出现的窗口中,检查masm并选择ok。

To get support for it in a project, you need to install the C/C++ support, which you have already done, create a new C/C++ project and when it has been created you must then do one more step. Open up Solution Explorer, right click on your project, find Build Dependencies hover over it and then select Build Customisations. In the window that appears, check masm and select ok.

现在,这将使用ml / ml64在项目中构建任何.asm文件,具体取决于您的项目配置。但是.asm文件仍然没有项目项。要添加这些,您只需在添加新项目窗口中选择新的C ++文件(.cpp),当您
命名它时,请确保为其指定.asm扩展名。

This will now build any .asm file in the project with ml/ml64 depending on your project configuration. But there is still no project item for .asm files. To add these you can simply select new C++ file (.cpp) in the add new item window and when you name it, make sure you give it a .asm extension.

如果在启用masm支持之前将任何.asm文件添加到项目中,则这些.asm文件不会自动更改为使用masm构建,您需要自己更改它们。最简单的方法是从
项目中删除它们(注意不要删除它们),然后再添加它们。

If you added any .asm files to the project before you enabled masm support, these .asm files will not automatically be changed to build with masm, you will need to change them over yourself. The simplest way of doing this is to just remove them from the project (being careful not to delete them) and then add them again.


这篇关于我需要安装Visual Studio 2017中的哪个组件才能获得MASM支持 - 这就是我现在想要的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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