NuGet triggers throw NuGet.CommandLineException when using NuGet 4.3
We've uploaded NuGet 4.3 to our TC instance (10.0.5) and found NuGet triggers configured on our build configurations are throwing the below exception. Is there support for NuGet 4.3 in 2017.x ?
[2017-09-26 08:38:27,127] WARN - impl.ListPackagesCommandImpl$1 - Could not load type 'NuGet.CommandLineException' from assembly 'NuGet, Version=4.3.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
[2017-09-26 08:38:27,128] WARN - hecker.PackageCheckerNuGetBulk - Failed to bulk check changes of NuGet packages. Failed to execute NuGet TeamCity.ListPackages command. Exited code was 1
jetbrains.buildServer.nuget.server.exec.NuGetExecutionException: Failed to execute NuGet TeamCity.ListPackages command. Exited code was 1
at jetbrains.buildServer.nuget.server.exec.NuGetOutputProcessorAdapter.onFinished(NuGetOutputProcessorAdapter.java:53)
at jetbrains.buildServer.nuget.server.exec.impl.NuGetExecutorImpl.executeNuGet(NuGetExecutorImpl.java:112)
at jetbrains.buildServer.nuget.server.exec.impl.ListPackagesCommandImpl.checkForChanges(ListPackagesCommandImpl.java:73)
at jetbrains.buildServer.nuget.server.trigger.impl.checker.PackageCheckerNuGetBulk$1.run(PackageCheckerNuGetBulk.java:102)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:74)
at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:41)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Please sign in to leave a comment.
Hi,
Support for NuGet 4.0+ was introduced in 2017.1, so you should be able to work properly with it with the newer version.