Visual Studio-在哪里定义自定义路径宏? [英] Visual Studio - Where to define custom path macros?

查看:272
本文介绍了Visual Studio-在哪里定义自定义路径宏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚打开了别人的Visual Studio项目,在他们的构建属性中,他们有一些自定义路径宏,它们正在用于其include和lib目录.宏名称是这样的:

I just opened someone else's Visual Studio project and in their build properties they have a few custom path macro's they are using for their include and lib directories. The macro names are things like this:

$(MY_WHATEVER_INCLUDE_DIR)

我可以用实际路径手动替换每个宏,但是只使用宏会很好.我的问题是,在哪里定义这些自定义路径宏?

I could manually replace every single macro with the real path, but it would be nice to just use the macros. My question is, where do I define these custom path macros at?

推荐答案

此链接

This link http://msdn.microsoft.com/en-us/library/a2zdt10t(v=vs.90).aspx could interest you. I didn't like the idea of changing my whole system configuration just to build a project. The most interesting part on the page is the last comment :

此页面未提及如何进入此对话框:

This page fails to mention how to get to this dialog:

在Property Manager中,双击属性页.单击树控件中公共属性"下的用户宏".

From Property Manager, double click on a property page. Click on "User Macros" under "Common Properties" in the tree control.

这篇关于Visual Studio-在哪里定义自定义路径宏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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