Nuget.exe path on build server
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?
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
Support Staff 1 Posted by rune on Feb 22, 2015 @ 02:23 PM
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 Posted by D. Felix on Mar 02, 2015 @ 10:38 PM
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 Posted by Mark Richer on Aug 22, 2017 @ 06:24 AM
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?
rune closed this discussion on Aug 24, 2017 @ 07:43 PM.