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.
simple test with log outputs
I also added the mono version in the file mono-version.txt.
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.
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.
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.
output with lots of debug messages
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.
same style of log but with nant built on failing machine with prebuilt version
The version was built with mono V2.6.7