Visual Studio 2008 中的汇编编程
有人有 Visual Studio 2008 MASM 项目的最佳实践项目模板吗?我不知道为什么 Microsoft 为 VS 提供了 MASM,但希望您使用空白的 C++ 项目,因为默认情况下可以使用项目模板添加如此多的项目。
另外,是否有适用于 MASM 项目的 TFS 2008 的项目连接器,因为我一直找不到?
Does anyone have a best practice Project Template for Visual Studio 2008 MASM projects? I don't know why Microsoft shipped VS with MASM but epxect you to use a blank C++ project when there is so much that could have been added by default using a Project Template.
Also, is there a project connector for TFS 2008 for MASM projects as I have been unable to find one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,经过一番检查,VS 2008 似乎至少包含 masm .rules 文件(为您提供所有编译选项的文件):
好消息是我目前拥有一个真正成熟的 masm 解决方案,其中包含四个项目,包括100% masm 在 VS 2008 Express SP1 中打开。 masm 项目完全集成到 VS 2008 中,具有所有配置小工具等 - 没有像使用外部脚本等那样的混乱。所以 VS2008 中有 masm 支持,只是没有公开。根据此 vs 开发者博客条目, masm 从 SP1 开始在 VS2800 中重新引入。
该解决方案隐藏得很好,但很容易找到:只需单击 4 次即可操作。请记住,masm 是从 VS 2008 SP1 开始添加的(此处使用 Express 进行了测试)。
完毕。 masm 现在已在您的项目属性中公开,包含其所有选项和所有内容。
有关更多信息,请参阅帮助中的“Visual C++ 自定义构建规则文件对话框”:
Well, after some checking, it appears that VS 2008 at least contains the masm .rules file (the one that gives you all the compilation options):
The good news is that I currently have a real full fledged masm solution with four projects, including an 100% masm one opened in VS 2008 Express SP1. The masm project is fully integrated into VS 2008 With all the config gadgets etc - no kludge like using an external script etc. So there is masm support in VS2008, it is just not exposed. According to this vs developer blog entry, masm was reintroduced in VS2800 starting at SP1.
The solution is well hidden, but quite easy to reach: it's a mere 4-click operation. Remember, masm was added starting with VS 2008 SP1 (tested here with Express).
Done. masm is now exposed in your project properties, with all its options and everything.
For more, "Visual C++ Custom Build Rule Files Dialog Box" in help:
对此非常新,我发现你使用 vs 2008 express 解释的内容...还不知道如何处理它,想知道这是否对讨论有任何贡献(如果没有请原谅我,我浏览了一下它并看到了 MASM 并想到它可能有一些帮助!)来自 Microsoft Document Explorer(您必须转到帮助选项卡并搜索自定义构建,我无法插入 xml 文件):
规则文件或 RULES 文件是一个具有 .rules 文件扩展名的 XML 文件。它允许您定义自定义生成规则并将它们合并到 Visual C++ 项目的生成过程中。自定义构建规则与一个或多个文件扩展名相关联。作为构建过程的一部分,自定义构建规则使您能够将输入文件传递给工具,从而生成一个或多个输出文件。
使用 Visual C++ 自定义生成规则文件对话框来管理项目中的规则文件。
笔记:
规则文件遵循与属性表(VSPROPS 文件)相同的属性继承准则。有关详细信息,请参阅属性继承。
当您将自定义构建规则合并到构建过程中时,您还可以指定这些构建规则的运行顺序。有关详细信息,请参见工具构建顺序对话框。
使用规则文件的 XML 架构定义来验证您自己的 RULES 文件。
参见
概念
属性表的 XML 架构定义
项目文件
了解自定义构建步骤和构建事件
向 Microsoft 发送有关此主题的反馈。
Extremely new to this, I found what you explained using vs 2008 express...have no idea what to do with it yet, wonder if this contributes any to the discourse (if not forgive me, I glanced through it and saw MASM and figured it may be of some help!) from Microsoft Document Explorer (you have to go to the help tab and search for custom build, I cant insert the xml file):
A rule file, or RULES file, is an XML file that has a .rules file extension. It allows you to define custom build rules and incorporate them into the build process of a Visual C++ project. Custom build rules are associated with one or more file extensions. A custom build rule enables you pass input files to a tool, which results in one or more output files, as part of the build process.
Use the Visual C++ Custom Build Rule Files Dialog Box to manage the rule files in your projects.
Note:
Rule files follow the same property inheritance guidelines as property sheets (VSPROPS files). For more information, see Property Inheritance.
When you incorporate custom build rules into the build process, you can also specify the order in which those build rules are run. For more information, see Tool Build Order Dialog Box.
Use the XML Schema Definition for Rule Files to validate your own RULES files.
See Also
Concepts
XML Schema Definition for Property Sheets
Project Files
Understanding Custom Build Steps and Build Events
Send feedback on this topic to Microsoft.