Reputation: 11
I'm working on a project wich will create boilerplates for new websites, And based on what you select in the interface/GUI it will install certain modules to the new site.
Therefore I want to use NuGet "outside" of visual studio to add this Modules and the references to the project/solution file.
I have no problem installing packages to a certain path, it is just the references that I need to add to the solution.
I wonder if anyone have done something similar and can give some guidance?
Regards, Halle
Upvotes: 0
Views: 882
Reputation: 47987
If the NuGet packages just contain one or more assemblies that are added to your project references then adding the reference with custom code is probably the simplest way.
If the NuGet packages include content files, such as scripts, then you will need to add those too.
If the NuGet packages rely on PowerShell scripts then you could probably use a custom build of SharpDevelop. This is a heavyweight solution since it requires most of SharpDevelop to do the work.
There is also "nuget update" which should update to the latest versions of the packages, but it will not install them into a project from scratch.
Upvotes: 2