#163 Unable to include version info in dll

open
Curt Arnold
cpptasks (103)
5
2005-11-22
2005-11-22
Ganesh
No

I am building the component icu4c using cc task on
Windows. I use the attribute versioninfo to include the
version info in the dlls. After building, I don't see
any version info with the dll. Here's the script that I
used.

<target name="cc-toolutil">
<cc debug="${debug}"
link="shared"
outfile="${bin.dir}/${toolutil_FILENAME}"
objdir="${obj.dir}"
multithreaded="true"
exceptions="true"
optimize="speed"
rtti="true"
name="${compiler}"
>
<versioninfo companyname="Computer Associates"
productname="TechStack"
productversion="R4"
fileversion="3.4.0.0"/>

</cc>
</target>

Discussion

  • szetheli
    szetheli
    2008-12-16

    I've run into the same problem. The .rc file that gets generated matches the input, except that its only line terminated with "\n" instead of "\r\n". Visual studio is able to read the .res file that got generated. Its also able to pull the version info from the dll. However when right clicking on the dll to view the properties is missing a version tab (on windows 2003 server 64).
    I have been able to get a .rc file that was generated outside of the cpptasks to compile through the msrc compiler and successfully view the version tab on that dll from windows.
    My suspicion is that windows doesn't like the fact that the .rc had "\n" instead of "\r\n".