[xsd-users] Visual Studio rule file does not work with IncrediBuild

Nick John Nick.John at ActivIdentity.com
Fri Mar 28 01:59:45 EDT 2008


Hi,

 

The xsd-cxx-tree.rules file in etc\vc-8.0 does not work with
IncrediBuild in Visual Studio 2005. This is because the rule file is
relying on the [AllOptions] in the command line to be expanded with the
OutDir property first. With IncrediBuild this is not the case.

 

The solution is remove the -output-dir from the command line:

 

    xsd.exe cxx-tree [AllOptions] [AdditionalOptions] [Inputs]

 

and add it into the switch for the OutDir property (--output-dir
[value])

 

You then need to change the Outputs field to be:

 

 
"[$OutDir]\$(InputName)[$HeaderSuffix];[$OutDir]\$(InputName)[$SourceSuf
fix]"

 

Note the '$' chars inside the square brackets ('[',']') means you get
the actual value of the property rather than the switch value for the
property.

 

See the attached rule file.

 

Cheers,

Nick

 

Nicholas John
ActivIdentity

7 Phipps Close , Deakin , ACT 
Tel: +61 2 6208 4866

 <http://www.actividentity.com/> http://www.actividentity.com

The information contained in this email message may be privileged,
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this email message in
error, please notify the sender by reply email and delete the message
and any attachments. 

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xsd-cxx-tree.rules
Type: application/octet-stream
Size: 8822 bytes
Desc: xsd-cxx-tree.rules
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20080328/367cb313/xsd-cxx-tree.obj


More information about the xsd-users mailing list