Yes. Use the method described in Invoking NuGet Services from inside Visual Studio.
In particular, look at the methods on the IVsPackageInstaller service.
题
I'm creating a scaffolding tool and want to install a nuget package in a certain project from an EnvDTE extension. Is this possible?
解决方案
Yes. Use the method described in Invoking NuGet Services from inside Visual Studio.
In particular, look at the methods on the IVsPackageInstaller service.