VisualC 2010、项目引用和包含路径
我正在尝试使用 VC2010 项目引用,它是旧的“项目依赖关系”对话框的替代品。然而,我缺少的是一种让引用项目继承引用项目的包含和库路径的方法。现在,我必须手动复制我在引用的项目中设置的任何额外路径。
有什么想法吗?
I am trying to use the VC2010 project references, which are the replacement for the old Project Dependencies dialog. What I am missing, however, is a way to let the referring project inherit the referred one's include and library paths. Right now, I have to manually copy any extra paths I set in the referred project.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用属性表来抽象出常见的编译器和链接器设置。然后,您的两个项目都将导入相同的属性表。
请参阅http://msdn.microsoft.com/en-us/library/ee662426。 ASPX
You can use property sheets to abstract away the common compiler and linker settings. Both of your projects then would import the same property sheet.
See http://msdn.microsoft.com/en-us/library/ee662426.aspx
我认为在视觉工作室中没有办法做到这一点。但是,由于项目文件是 msbuild 文件,因此没有什么可以阻止您在两个项目文件中使用公共包含。
但这并不是您真正要问的,是吗?
I don't think there is a way to do this in visual studio. However since the project files are msbuild files there is nothing stopping you from using a common include in both project files.
However this is not really what you're asking is it?