VsPackageInstaller.InstallPackage problem with NuGet 3 beta

Topics: General
Apr 2, 2015 at 11:59 PM
I have a project template wizard (an IWizard) which uses a composed instance of IVsPackageInstaller to install NuGet packages to a project. In VS2012 and VS2013 I used the InstallPackage signature which accepts a repository:
InstallPackage(IPackageRepository repository, Project project, string packageId, string version, bool ignoreDependencies, bool skipAssemblyReferences);
In VS2015 it looks like this signature is no longer supported, so I've tried the following instead:
InstallPackage(string source, Project project, string packageId, string version, bool ignoreDependencies);
Unfortunately this throws an InvalidOperationException with message "The service 'Microsoft.Internal.VisualStudio.Shell.Interop.SVsUIThreadInvokerPrivate'
must be installed for this feature to work. Ensure that this service is available. HRESULT = 0x8000FFFF"

Any ideas how to resolve this? I don't know how to install this feature ...

My environment - VS Ultimate 2015 CTP6, NuGet Package Manager for VS 2015 v3.0.60225.100.