How do I specify the version in the #tool directive?
See original GitHub issueI’m using the #tool
directive to reference the NUnit.Runners
package:
#tool "NUnit.Runners"
Currently it picks version 2.6.4, which is what I want, so it’s OK. But Is there a way to specify the version explicitly? Because when NUnit 3.0 is released (if this day ever comes), I might not want to update immediately…
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Setting the version number for .NET Core projects - CSPROJ
Currently, Version composition works as this: If Version is unset, use VersionPrefix (defaults to 1.0.0 if unset) and - if present - append ......
Read more >Determine which .NET Framework versions are installed
Use code, regedit.exe, or PowerShell to detect which versions of .NET Framework are installed on a machine by querying the Windows registry.
Read more >Preprocessor Directives
Reference directive, Directive to reference external assemblies for use in your scripts ; Tool directive, Directive to install external command-line tools.
Read more >Using #if compiler from now on instead of swift-tools ...
I tried specifying .v5 in the 4.2 manifest but SwiftPM rejected it insisting I use a 5.0 tools version. I know you used...
Read more >Set value of directive in Directives - MATLAB
This MATLAB function assigns a value to the named directive in coder.make.Directives.
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
Absolutely. Thanks!
@thomaslevesque I believe that the core requirement within this issue has now been met, as you can specify the version number that you want to use within both the #addin and #tool directive. You can see more information about this here: http://cakebuild.net/docs/fundamentals/preprocessor-directives
I am going to close this issue, but feel free to re-open if required.