问题
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