powershell - What is the path of the nuget package i just installed -
given have installed recent version of package using nuget (using powershell), outside of solution or project folder e.g. ps> nuget install octopustools
directory created below current folder, in case \octopustools.4.22.1
.
i want access exe inside package has relative path \octopustools.4.22.1\tools\octo.exe
. want easy way know path in script because version number can change based on releases.
is there easy way nuget tell me name of folder has installed to, i.e. octopustools.4.22.1?
i want avoid guessing path based on recursivly scanning folders or hardcoding version number if possible. docs not seem offer obvious?
big @matt ward comment solved - use excludeversion , path installed exe guaranteed, when different version installed.
to work had update version of nuget installed older versions not support flag. (update easy if using chocolatey: choco upgrade nuget.commandline -y
and octo.exe (and in example call help) this:
ps> nuget install octopustools --excludeversion ps> octopustools\tools\octo.exe
Comments
Post a Comment