#513 ResGen issue with long paths if assembly references used

cvs
closed-fixed
Tasks (408)
5
2006-09-30
2006-01-26
No

Related issue: 1153724.

Issue:
- The resgen task already batches multiple resgen.exe
calls when the command line is too long (around 30000),
however the assembly references are not taken into
account to determine this length. When the command
line without assembly references is just less than the
limit, this may cause problems anyway.

Context
- Discovered by using solution task to build a VS2003
web project on .NET 2.0.
- Can be reproduced using just the resgen task.

Attached:
- Sample build files, must be unzipped to directory
'C:\testLongDirNametestLongDirNametestLongDirNametestLongDirNametestLongDirNametestLongDirNametestLongDirNametestLongDi'
or a directory name with the same length to reproduce the
problem.
The build file resgenNoAssemblyRefWORKS.build and
resgenWithAssemblyRefBROKEN.build do the same, except
for assembly references.
- Note that both the contenst of the assemblies and
resx files do not matter here.

Discussion

  • Bernard Vander Beken

    Logged In: YES
    user_id=25244

    Note: I cannot upload the sample build files since the file
    size is to large, I can mail it if requested.

    This is the contenst of the breaking sample:

    <?xml version="1.0"?>
    <project name="ResGen command line limit example"
    default="rebuild">

    <target name="clean" description="remove all generated
    files">
    <delete>
    <fileset>
    <include name="output/**" />
    </fileset>
    </delete>
    </target>

    <target name="build">
    <resgen todir="output">
    <assemblies>
    <include name="assemblies/*.dll" />
    </assemblies>
    <resources>
    <include name="resx/*.resx" />
    </resources>
    </resgen>
    </target>

    <target name="rebuild" depends="clean, build" />

    </project>

     
  • Gert Driesen

    Gert Driesen - 2006-02-07

    Logged In: YES
    user_id=707851

    Bernard,

    Can you send me the repro (including resx files, and
    assemblies) by email (drieseng@users.sourceforge.net) ?

    Thanks !

     
  • Akhter

    Akhter - 2006-09-27

    Logged In: YES
    user_id=1608185

    I am seeing this exact problem--Is there a solution in the
    nightly builds? I also have a very long assembly path (about
    4000 chars)

     
  • Gert Driesen

    Gert Driesen - 2006-09-29

    Logged In: YES
    user_id=707851

    I never received a repro for this issue. Can you package up
    one and attach it (or send it to me by email,
    drieseng@users.sourceforge.net) ?

     
  • Bernard Vander Beken

    Logged In: YES
    user_id=25244

    I sent a mail about it in February, it most have vanished
    into thin air.

    The repro is available at http://jawn.net/resgenissue.zip

    To be used with:

    <?xml version="1.0"?>
    <project name="ResGen command line limit example"
    default="rebuild">

    <target name="clean" description="remove all generated
    files">
    <delete>
    <fileset>
    <include name="output/**" />
    </fileset>
    </delete>
    </target>

    <target name="build">
    <resgen todir="output">
    <assemblies>
    <include name="assemblies/*.dll" />
    </assemblies>
    <resources>
    <include name="resx/*.resx" />
    </resources>
    </resgen>
    </target>

    <target name="rebuild" depends="clean, build" />

    </project>

    Best regards,

    Bernard

     
  • Gert Driesen

    Gert Driesen - 2006-09-30

    Logged In: YES
    user_id=707851

    This is now fixed in cvs.

    Thanks for the report!

     
  • Gert Driesen

    Gert Driesen - 2006-09-30
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks