Skip to content

Addin vs Tool #3492

Answered by augustoproiete
mgnslndh asked this question in Q&A
Oct 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You got it right. We have documentation about tools and also how tool resolution works.

The #tool directive and the equivalent InstallTool in Frosting, downloads a NuGet package, expands it on disk and scan the files in the package, making them available to the Cake build (and addins) for easy lookup via tool resolution.

The #addin directive and the equivalent of PackageReference in Frosting, downloads a NuGet package, expands it on disk, scan the files for assemblies, and then loads them into the process.

Tool

If you have a NuGet package MyPackage that contains a tool MyTool.exe and you want to execute MyTool.exe you would do something like this:

#addin "nuget:?package=MyPackage&version=…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nils-a
Comment options

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