question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The #tool directive does not support the newer NUnit.Console packge

See original GitHub issue

What You Are Seeing?

Analyzing build script...
Processing build script...
Installing tools...
Could not find any relevant files for tool 'NUnit.Console'. Perhaps you need an include parameter?

The NuGet package is retrieved but the tool is not able to be found.

What is Expected?

The tool can be found!

What version of Cake are you using?

Cake.0.18.0-alpha0033

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Windows

How Did You Get This To Happen? (Steps to Reproduce)

Just add #tool "nuget:?package=NUnit.Console" to the top of you cake script

Output Log

PS C:\Workspace\QualityAssurance\Automation\XQA> .\build.ps1 -Verbose
Preparing to run build script...
VERBOSE: Trying to find nuget.exe in PATH...
VERBOSE: Downloading NuGet.exe...
VERBOSE: Restoring tools from NuGet...
VERBOSE: Feeds used:
  C:\Users\kywhi\.nuget\packages\
  https://www.myget.org/F/cake/api/v3/index.json

Restoring NuGet package Cake.0.18.0-alpha0033.
  GET https://www.myget.org/F/cake/api/v3/flatcontainer/cake/0.18.0-alpha0033/cake.0.18.0-alpha0033.nupkg
  OK https://www.myget.org/F/cake/api/v3/flatcontainer/cake/0.18.0-alpha0033/cake.0.18.0-alpha0033.nupkg 1619ms
Installing Cake 0.18.0-alpha0033.
Adding package 'Cake.0.18.0-alpha0033' to folder 'C:\Workspace\QualityAssurance\Automation\XQA\tools'
Added package 'Cake.0.18.0-alpha0033' to folder 'C:\Workspace\QualityAssurance\Automation\XQA\tools'
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Could not find any relevant files for tool 'NUnit.Console'. Perhaps you need an include parameter?
Error: Failed to install tool 'NUnit.Console'.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
devleadcommented, Dec 20, 2016

You could probably try and use the &include=./**/* syntax introduced in cake-build/cake#1202

0reactions
RSchwoerercommented, Jun 20, 2017

Here’s the #tool directive for using NUnit.Console that is working for me, using the &include syntax…

#tool nuget:?package=NUnit.Console&include=../Nunit.ConsoleRunner/**/*

Read more comments on GitHub >

github_iconTop Results From Across the Web

CakeBuild: Get failed to install tool 'NUnit.ConsoleRunner'
So Nuget just knows the local nuget package cache under "C:\Users\YOUR_USER_HOME.nuget\packages" and this did not include the specified package.
Read more >
NUnit.Console 3.16.3
This package includes the nunit3-console runner and test engine for version 3 of the NUnit unit-testing framework. The following extensions are included ...
Read more >
NUnit.ConsoleRunner 3.10.0
This package includes the nunit3-console runner and test engine for version 3 of the NUnit unit-testing framework. Any extensions, if needed ...
Read more >
Console and Engine Release Notes
Engine nuget package; #1277 NUnit does not work without .NET Core ... This release incorporates support for executing tests under . ... NET...
Read more >
Running VsTest with Cake
Using Cake to run tests with the NUnit console runner is well documented. ... downloading and using nuget packages with the #tool directive....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found