VS2008:将自定义生成规则添加到属性表(vsprops)? [英] VS2008: Add custom build rule to a Property Sheet (vsprops)?

查看:190
本文介绍了VS2008:将自定义生成规则添加到属性表(vsprops)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CUDA SDK随附的CUDA .rules文件在我的项目中进行自定义构建步骤.
为了节省属性重复,我想在.vsprops文件中定义CUDA规则的属性.出于某种原因,属性树的CUDA规则分支未显示在我的任何属性表下,仅显示在主要配置表下.
我尝试使用文本版本编辑.vsprops并手动添加该部分,但是没有任何更改,在Visual Studio中它仍然不会显示.
有办法吗?

I'm using the CUDA .rules file which comes with the CUDA SDK for custom build steps in my project.
To save on property duplication I'd like to define the properties of the CUDA rule in a .vsprops file. For some reason, the CUDA rule branch of the properties tree does not show under any of my property sheets, only under the main configurations sheets.
I tried editing the .vsprops with a text edition and add the section by hand but there is no change it still does't show when in visual studio.
Is there a way to do this?

推荐答案

据我所知,没有 XML模式中的元素 财产表,有关详细信息,请 看到:

"As far as I know, there is not element in XML schema for property sheets, for details, please see:

属性的XML模式定义 床单

XML Schema Definition for Property Sheets

所以我认为您不能添加自定义 将规则构建到属性表.为了 您的参考,在VS 2010中,自定义 VS 2008自定义中构建规则更改 构建规则由.rules定义 文件,转换将转换这些 .rules文件分成三个单独的部分 文件:.targets,.xml和.props,请参见 Visual Studio 2010 C ++项目升级 有关更多信息的指南."

So I don't think you can add custom build rule to a Property Sheet. For your reference, in VS 2010, Custom build rule changes, in VS 2008 custom build rule is defined by a .rules file, Conversion will convert these .rules files into three separate files: .targets, .xml and .props, See Visual Studio 2010 C++ Project Upgrade Guide for more information."

希望对其他人有帮助:)

Hope it helps others : )

这篇关于VS2008:将自定义生成规则添加到属性表(vsprops)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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