How can I ship an project template that includes dependencies on 3rd party nugget packages and ensure the end user will have the option to accept any package license before installing it?
I'm creating a visual studio project template which will include some nugget packages. I figure I can do it two ways:
- Add required references to the
csproj
file and includepackages.config
in the template: After project is created and before build, it will 'download the missing packages'. - Follow instructions on this document (Packages in Visual Studio templates) and embed packages within the extension so they get installed when the project is created.
Either way, the end user will end up with one or more packages installed on their project without ever having to agree with the package licenses (VS is performing kind of a silent install).