How can i get the #addin preprosessor directive to install to custom folder

25 Views Asked by At

I'm running a docker container where I map the source code folder from the local filesystem to the /src folder

When I then run the "dotnet cake" script, this installs a nuget package for npm with

#addin nuget:?package=Cake.Npm&version=2.0.0

This then installs the package in the /src/tools/Addin folder.

Is there any way for me to get it to install this to another folder? F.eks the /home/ folder

1

There are 1 best solutions below

1
Nils On

Cake has multiple configuration options. The option you are looking for is the addins path.

If you want to configure Cake using a configuration file, you would create a cake.config file, containing:

[Paths]
Addins=/home/

Keep in mind, though that this will change the installation path for all the addins in your Cake file!