Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Nuget.exe path on build server

Uri Hendler's Avatar

Uri Hendler

Feb 20, 2015 @ 10:22 AM

I need to run a custom nuget.exe command from inside a build target.

I have not committed nuget.exe to my repository (and don't want to). I see that the NuGet Package Restore feature works without requiring this.

How do I find the path to the nuget.exe on the build server?

  1. Support Staff 1 Posted by rune on Feb 22, 2015 @ 02:23 PM

    rune's Avatar

    Hi,

    If you want to use the NuGet executable installed on the server you can currently use this path: C:\Program Files (x86)\NuGet\nuget.exe - note that this may change in the future, but it should work fine for the time being. It'll likely be added to the path at some point so you don't have to reference an absolute path.

    Best,
    Rune

  2. 2 Posted by D. Felix on Mar 02, 2015 @ 10:38 PM

    D. Felix's Avatar

    If using VS, you can open NuGet.targets and set this flag to true.
    It avoids the need of pushing it.. and it will download nuget.exe if needed

    <!-- Download NuGet.exe if it does not already exist -->
    <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe>

  3. 3 Posted by Mark Richer on Aug 22, 2017 @ 06:24 AM

    Mark Richer's Avatar

    This comment was split into a new discussion: Nuget.exe path on build server

    I'm trying to pack our software PdfProLib and push to nuget.org without using nuget.exe file. Is there any script to do so?

  4. rune closed this discussion on Aug 24, 2017 @ 07:43 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac