arun kumar wrote:
Hi,
When i execute the Nant build file,its showing the following error

*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"

When you say "The Nant Build File", do you mean you are trying to compile NAnt from source, or you're trying to use NAnt to build something else? (I only ask because the build file being executed is called NantBuild.Build, which looks incorrect.)

At any rate, the error here just means that .NET located a copy of NUnit to load that was not signed. This is probably because the NAnt executable or one of it's assemblies was strongly named, and you can't load the unnamed assembly from a named assembly.

Since it looks like you're compiling NUnit from source as well, you just need to make sure the NUnit assemblies aren't anywhere .NET will find them while building NAnt. NAnt ships with signed copies of NUnit's assemblies, which will load without running into this problem.

If you rebuild all of NAnt and NUnit from source, you should then be able to use them together, since nothing will be strongly named and the Framework will not complain.

--Mike



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to