Title: Nant not working - Property 'nant.platform.name' has not been set!

I have created a build file for compiling my application.
The build file is using the <solution> task for building the project and its working fine on my machine.

But when I try to build the solution on a build machine (separate machine we use for building the solution and creating setup), I get the following error:

 Unknown task <solution>

Also, when I try to build nant source itself on that machine, I get the following error.
C:\Nant\NAnt.build(3,6):
 Property 'nant.platform.name' has not been set!

When I set this property in the nant command using -D option, the nant build goes a little further but fails with the following error:

  [foreach]  Failed to created Task for 'nant' xml element for reason:
 C:\Nant\NAnt.build(89,14):
 Property 'nant.platform.win32' has not been set!:
SourceForge.NAnt.BuildException: C:\Nant\NAnt.build(89,14):
 Property 'nant.platform.win32' has not been set!
   at SourceForge.NAnt.PropertyDictionary.ExpandProperties(String input, Locatio
n location)


Please help.

Thanks.

Reply via email to