VS2008: Add custom build rule to a Property Sheet (vsprops)?

做~自己de王妃 提交于 2019-12-23 19:15:37

问题


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?


回答1:


Nancy answered the question here

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

XML Schema Definition for Property Sheets

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 : )



来源:https://stackoverflow.com/questions/1623609/vs2008-add-custom-build-rule-to-a-property-sheet-vsprops

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!