Click to See Complete Forum and Search --> : XSD.exe creating uncessary files


dardar
February 8th, 2011, 01:10 AM
Hi all,

i have a weird bug when trying to generate an h file from xsd file.

in my make file i'm using the following lines:


<Target Name="Generate_XSD_Schema" Condition=" '$(BuildType)' != 'Clean' "
Inputs="$(SourcesPath)\file.xsd;"
Outputs="$(SourcesPath)Gen\file.h">
<Exec Command="xsd $(SourcesPath)file.xsd /c /l:CPP /o:$(SourcesPath)Gen" ContinueOnError="false" />
</Target>


as u can see my file.xsd is placed in a given a "main" directory, and the output should be placed in a directory named Gen (that is placed in the "main" directory).

now, everything works fine (the h file is generated a excpected) , BUT 3 addition files pop-up in the "main" directory while building my project:

file.dll.manifest , file.dll and file.h (which is empty).



i am using the same code in other placed and i don't get those files.



anyone have any idea why this happens?