That error is usually returned when you try to set a property (using the task <property>) that you have already set on the command line. If you want the command line to override the value set by the <property> task, you can do this:

<property name="testproperty" value="test" unless="${property::exists('testproperty')}"/>

On 14/01/06, arun kumar <[EMAIL PROTECTED]> wrote:
Hi,
When i execute the Nant build file,its showing the following error
 
Buildfile: file:///C:/Documents and Settings/Arun/My Documents/Visual Studio Projects/NAntBuildAndNunit/Nantbuild.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: test
[property] Read-only property " build.dir" cannot be overwritten.
build:
test:
BUILD FAILED
- 0 non-fatal error(s), 1 warning(s)
INTERNAL
ERROR
System.IO.FileLoadException: The located assembly 'nunit. core' is not strongly named.
File name: "nunit.core"
at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Please send bug report to nant-developers@lists.sourceforge.net.
Total time: 1.5 seconds.


Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.


Reply via email to