Unable to launch NAnt script - Failure scanning JetBrains.BuildServer.NAntLoggers.dll for extensions

I'm running TeamCity Professional 6.5.3 (build 17985) and NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010).  Attempting to run a simple NAnt target from TeamCity results in the following error:

NAnt.exe -debug -buildfile:build.xml -extension:C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll MyTarget


NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010)

Copyright (C) 2001-2010 Gerry Shaw

http://nant.sourceforge.net

 

BUILD FAILED


Failure scanning "C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll" for extensions.


    Could not load file or assembly 'NAnt.Core, Version=0.85.2311.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


Stacktrace:


Failure scanning "C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll" for extensions.:

NAnt.Core.BuildException: Failure scanning "C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll" for extensions. ---> System.IO.FileNotFoundException: Could not load file or assembly 'NAnt.Core, Version=0.85.2311.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


File name: 'NAnt.Core, Version=0.85.2311.0, Culture=neutral, PublicKeyToken=null'

   at System.Reflection.Assembly._GetExportedTypes()

   at System.Reflection.Assembly.GetExportedTypes()

   at NAnt.Core.TypeFactory.ScanAssembly(Assembly assembly, Task task) in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\TypeFactory.cs:line 117

   at NAnt.Core.TypeFactory.ScanAssembly(String assemblyFile, Task task) in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\TypeFactory.cs:line 100

   at NAnt.Core.Tasks.LoadTasksTask.ExecuteTask() in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\Tasks\LoadTasks.cs:line 148


WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


   --- End of inner exception stack trace ---

   at NAnt.Core.Tasks.LoadTasksTask.ExecuteTask() in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\Tasks\LoadTasks.cs:line 154

   at NAnt.Core.Task.Execute() in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\Task.cs:line 186

   at NAnt.Core.ConsoleDriver.LoadExtensionAssemblies(StringCollection extensionAssemblies, Project project) in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\ConsoleDriver.cs:line 400

   at NAnt.Core.ConsoleDriver.Main(String[] args) in c:\BuildAgent\work\31e2a06e94b42384\MKEBuildTools\nant-0.90\src\NAnt.Core\ConsoleDriver.cs:line 105

 

Removing the -extension:C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll command line argument results in success.

My NAnt.Core.dll is 0.90.3780.0; do I need to find the 0.85.2311.0 version in order for this to work?  Or can JetBrains.BuildServer.NAntLoggers.dll use the latest 0.90 build?

Thanks,

Bryan

2 comments
Comment actions Permalink

TeamCity should work with NAnt 0.90, but please check your NAnt installation is complete - NAnt.exe.config is preserved and not modified.

0
Comment actions Permalink

We were recompiling NAnt 0.90 from source code; this was causing TeamCity to throw the error message, although I'm still not sure why (we didn't make any code changes to NAnt.)

Using the NAnt 0.90 release binaries solved the error message.

-Bryan

0

Please sign in to leave a comment.