Menu

#746 include task fails on nant 0.90 with Cannot cast ...

open
nobody
None
5
2010-07-31
2010-07-31
No

The include task fails on nant 0.90 and newer. I added a test buildfile which works which nant 0.86 and does fail on nant-0.90 with:

/home/sven/nant-test/test.build(4,3):
Could not include build file '/home/sven/nant-test/test.include'.
Cannot cast from source type to destination type.

Discussion

  • Sven Bormann

    Sven Bormann - 2010-07-31

    simple test with log outputs

     
  • Sven Bormann

    Sven Bormann - 2010-07-31

    I also added the mono version in the file mono-version.txt.

     
  • Ryan Boggs

    Ryan Boggs - 2010-09-13

    This seems to be working with 0.91 Alpha 2 on both Mono and .NET using WinXp. Can you provide additional insight on the platform you are experiencing this error on? BTW, thanks very much for the attachment. It helps track this thing down.

     
  • Sven Bormann

    Sven Bormann - 2010-09-13

    I did those tests with Windows XP 32bit and Linux (specifically Arch Linux 64bit)
    So, I think it is not related to the mono version.
    However, I did not test on 0.91 Alpha 2 at that time.
    But, I did now and it still show that issue on mono and Windows XP as well.

    So probably, you use what is put on the releases page and check with that.

    Windows XP SP2 has .Net V1.1.

     
  • Ryan Boggs

    Ryan Boggs - 2010-09-14

    when you run the test scripts, can you run it with "nant -v+ -debug+" and post the output as an attachment please? I wanna see what is going on on your machine.

     
  • Sven Bormann

    Sven Bormann - 2010-09-14

    output with lots of debug messages

     
  • Sven Bormann

    Sven Bormann - 2010-09-14

    I just thought about building nant on that machine. If it is built on the machine having that problem, it is working correctly in that case.

    I am attaching a log of that run.

     
  • Sven Bormann

    Sven Bormann - 2010-09-14

    same style of log but with nant built on failing machine with prebuilt version

     
  • Sven Bormann

    Sven Bormann - 2010-09-14

    The version was built with mono V2.6.7

     

Log in to post a comment.