[xsd-users] Constant rebuilds and no clean, in VS2005.

Boris Kolpackov boris at codesynthesis.com
Fri Jun 13 05:53:25 EDT 2008


Hi Thierry,

Seegers, Thierry <Thierry.Seegers at am.sony.com> writes:

> This being my first post here, I'd like to congratulate the makers of
> this tool. It's pretty neat (and obviously, quite helpful). J

Thanks!


> I'm facing an annoyance where, in Visual Studio 2005, the project
> responsible for generating source code is constantly rebuilding, even
> when no schema files nor generated files have been touched. I've
> followed the instructions on the Wiki about using the custom build rules
> file for VS2k5. Some changes I've made to my project settings that may
> have an effect -I'm not sure- are General->Output Directory =
> $(ProjectDir)$(ConfigurationName) and Librarian->General->Output
> File=..\..\..\$(ConfigurationName)\$(ProjectName).lib. All my schema
> files and generated files have been added to the project.
> 
> Another thing I noticed is that performing a Clean on the project does
> not delete the generated files. Is that expected? 

I am pretty sure this means that the output file names that are
specified by the rules file do not match what is actually produced
by the XSD compiler.

I tried in a test project to change the "Output Directory" field to 
$(ProjectDir)$(ConfigurationName) but could not reproduce the problem.
The only way I could get the "always rebuilding" behavior is when I
changed the C++ file extensions from the default .hxx/.cxx to .h/.cpp.
This is due to a bug in the rules files that are distributed in 3.1.0
that we have fixed for the next release. Perhaps you have also changed
the generated file extensions in your project? If that's the case, you
can get the fixed rules files here:

http://www.codesynthesis.com/~boris/tmp/etc-3.1.1.zip

Let me know if this doesn't help.

Boris




More information about the xsd-users mailing list