Nant exception when using NAnt 0.86 build

I am building one project using nant version  - NAnt 0.86 (Build 0.86.3608.0; dev; 2009-11-17)

I am not getting this error while using NAnt 0.86 (Build 0.86.2898.0; beta1; 2007-12-08)

While building the project i am getting following error.

Constructor on type 'NAnt.Core.Extensibility.ExtensionAssembly' not found.
System.MissingMethodException: Constructor on type 'NAnt.Core.Extensibility.ExtensionAssembly' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.CreateTaskBuilder(Assembly a, String className) in c:\Agent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 106
at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.PatchTask(String name, Type t) in c:\Agent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 96
at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.PatchTasks() in c:\Agent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 118
at JetBrains.BuildServer.NAntLoggers.NAntListener2.BuildStarted(Object sender, BuildEventArgs e) in c:\Agent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListener2.cs:line 52
at JetBrains.BuildServer.NAntLoggers.NAntListener.BuildStarted(Object sender, BuildEventArgs e) in c:\Agent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListener.cs:line 23
at NAnt.Core.BuildEventHandler.Invoke(Object sender, BuildEventArgs e)
at NAnt.Core.Project.OnBuildStarted(Object sender, BuildEventArgs e)
at NAnt.Core.Project.Run()


please help to resolve this issue.
9 comments

It seems your NAnt 0.86 build is quite close to 0.90 alpha 1.
In current version of TeamCity we supported it.

Is that possible for you to upgrade to NAnt 0.90 alpha1?
We plan to release TeamCity EAP build with support of 0.90 this week.

0

If it not possible to fix the issue with that particular version, we can upgrade it to .90.
But it will be good if you can provide a reason why the issue is happening only with that version.

Thanks
Pyari.

0

TeamCity replaces several tasks like <nunit2> or <echo>. This requires us to use NAnt api. Unfortunatly, they changed this api.
Inside TeamCity we check NAnt version to find the way how to register our tasks, that is why I recommend you upgrading to NAnt 0.90

0

FYI: I filed an issue to address proper error reporting.

0

I'm having the same issue when running NAnt 0.90

Constructor on type 'NAnt.Core.Extensibility.ExtensionAssembly' not found. System.MissingMethodException: Constructor on type 'NAnt.Core.Extensibility.ExtensionAssembly' not found.    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)    at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.CreateTaskBuilder(Assembly a, String className) in c:\BuildAgent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 106    at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.PatchTask(String name, Type t) in c:\BuildAgent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 96    at JetBrains.BuildServer.NAntLoggers.NAntListenerImpl.PatchTasks() in c:\BuildAgent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListenerImpl.cs:line 118    at JetBrains.BuildServer.NAntLoggers.NAntListener2.BuildStarted(Object sender, BuildEventArgs e) in c:\BuildAgent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListener2.cs:line 52    at JetBrains.BuildServer.NAntLoggers.NAntListener.BuildStarted(Object sender, BuildEventArgs e) in c:\BuildAgent\work\3f3d88bdf17c1223\src\NAntLoggers\src\NAntListener.cs:line 23    at NAnt.Core.BuildEventHandler.Invoke(Object sender, BuildEventArgs e)    at NAnt.Core.Project.OnBuildStarted(Object sender, BuildEventArgs e)    at NAnt.Core.Project.Run()

0

I just updated from 5.0 to 5.1 and the issue is now resolved. Thanks.

0

Hi there,

We are running 5.02, we cannot upgrade to 5.1 just yet but can change our NANT (Current version 0.90 Alpha 1). Can you advise of a version of NANT we can use for 5.02?

Thanks,

Victor

0

NAnt 0.90 is only supported starting from 5.1.x, while NAnt 0.86beta 1 is supported by both versions.

0

Please sign in to leave a comment.