Skip to content

Run dotnet local tool (if exists), fallback to global tool (if exists) #2952

Answered by gep13
augustoproiete asked this question in Q&A
Discussion options

You must be logged in to vote

@augustoproiete have you seen the Cake.DotNetTool.Module`? https://github.com/cake-contrib/Cake.DotNetTool.Module

This will allow you to express that a tool should be installed in the same way as an addin or NuGet tool, for example:

#tool dotnet:?package=Octopus.DotNet.Cli&version=4.41.0

You can specify whether it should be installed globally or not, along with other options, using parameters:

https://cake-contrib.github.io/Cake.DotNetTool.Module/docs/usage/parameters

This would allow you to directly control what, and how, tools should be installed.

Does this help?

One thing to note, if you do make use of this, and you are using 0.38.5 or earlier of Cake, you will need to execute the boo…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@augustoproiete
Comment options

@gep13
Comment options

Answer selected by augustoproiete
Comment options

You must be logged in to vote
4 replies
@gep13
Comment options

@gep13
Comment options

@augustoproiete
Comment options

@gep13
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants