#249 Solution task doesn't compile resources for VC++

0.85
closed-fixed
Tasks (408)
9
2004-12-04
2004-12-02
Hani Atassi
No

The <solution> task when given a VC++ solution, it
doesn't compile the resource file that belongs to the
solution.

Discussion

  • Hani Atassi

    Hani Atassi - 2004-12-02
    • priority: 5 --> 9
     
  • Gert Driesen

    Gert Driesen - 2004-12-02

    Logged In: YES
    user_id=707851

    Can you attach a small repro to this report ?

    Any chance you'd like to contribute the changes necessary to
    support resources in VC++ ? ;-)

     
  • Hani Atassi

    Hani Atassi - 2004-12-03

    Logged In: YES
    user_id=590187

    Attached is a VC++ solution with the problem. The project
    has a resource file that contains version information. After
    running the NAnt script, the output file won't have a version
    because the resource file hasn't been compiled.

    I tracked down the problem to the file VcProject.cs. I added
    the required changes to fix the problem and attached the file.
    I added the comment // {date} (ha) at the lines of the
    changes..

    It works fine with me, let me know how it goes.. :)

     
  • Hani Atassi

    Hani Atassi - 2004-12-03

    Contains a sample of the problem and a fix for NAnt.VSNet

     
  • Hani Atassi

    Hani Atassi - 2004-12-03

    Logged In: YES
    user_id=590187

    Got another comment and fix. My code doesn't work if you
    are trying to call an NAnt of a project from a different path.

    Actually, I forgot to add the following line:
    rcTask.BaseDirectory = fileConfig.ProjectDir;

    But it doesn't seem that it has any effects. So, to fix the
    problem, I need to add the full path of the RC file as the
    following:

    rcTask.RcFile = new FileInfo(Path.Combine
    (fileConfig.ProjectDir.FullName, rcFile));

    I attached the new fix..

    Thanks,

     
  • Hani Atassi

    Hani Atassi - 2004-12-03

    A new fix for the problem.

     
  • Gert Driesen

    Gert Driesen - 2004-12-04
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2004-12-04

    Logged In: YES
    user_id=707851

    I committed your patch to cvs.

    Thanks a lot for your contribution !!!

    One little remark: it might be best to extend RcTask instead
    of passing options using the Options attribute, that way
    people that use <rc> can take advantage of it too (without
    falling back to the "options" attribute).

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks