NuGet as a library.

25 views
Skip to first unread message

Micah Zoltu

unread,
Jul 4, 2014, 7:07:38 PM7/4/14
to nuget-e...@googlegroups.com
I would like to be able to leverage the functionality of NuGet from an application I am building without having to interact with it through the command line.  I would like to see a NuGet.dll built for AnyCPU.

It appears that I can reference NuGet.exe and access most of its functionality, but NuGet.exe is built for x86, which means my project should be built x86 as well (since I can't know what NuGet.exe does that may not work on x64).  Also, if I add a reference to NuGet.CommandLine, a reference won't automatically be added to my project and if I then distribute my tool as a NuGet package, it won't automatically pick up the reference.

I believe the simplest solution, assuming there are no technical limitations, would be to build NuGet.dll AnyCPU and release it as a NuGet package.  Then, any third party developers (such as myself) can leverage the power of the library with minimal effort.

For the curious, I am building a NuGet package that someone can add to their project and it will cause their project to automatically generate a NuGet package on successful builds.  To do this currently, I have to depend on NuGet.CommandLine and then create a new process to execute it, passing arguments in via command line.

Maarten Balliauw

unread,
Jul 16, 2014, 3:10:12 AM7/16/14
to nuget-e...@googlegroups.com
Did you check the NuGet.Core package? It may just be what you are looking for :-)
Reply all
Reply to author
Forward
0 new messages