Can someone share with me how (or where I can find how to install) NuGet packages automatically when I create a new project based on my custom project template in Visual Studio 2010?
I am creating a new project template for a project that uses a pair of NuGet packages by default. I read the documentation on the NuGet website, but this is not acceptable as I want to reference an existing package if it is already installed in the project.
In other words, if I embed v1 package in my template (VSIX), but version 1.1 is already installed in the solution, I want NuGet to reference version 1.1 instead of embedding v1 in the solution and forcing the developer to update the package.
Is it possible? And if so, how?
source share