The #tool directive does not support the newer NUnit.Console packge
See original GitHub issueWhat 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:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could probably try and use the
&include=./**/*
syntax introduced in cake-build/cake#1202Here’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/**/*