How to get path of NuGet.exe from within msbuild script?

How can I get a path of NuGet.exe from within msbuild script, so I can run it from this script? (I need this to pack my application files using NuGet)

2 comments

Hi Andrei,

The path to NuGet.exe is stored in %teamcity.tool.NuGet.CommandLine.2.2.1.nupkg% parameter, the full path is %teamcity.tool.NuGet.CommandLine.2.2.1.nupkg%\tools\NuGet.exe.

0

Please sign in to leave a comment.