With
Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
and Nuget Package manager 3.1.60724.766 Extension (Package Manager Console Host Version 3.1.1.0)
Running "Install-Package Baseclass.Contrib.Nuget.GitIgnoreContent" generates the following error:-
Executing script file 'C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\init.ps1'
Unable to find type [NuGet.VisualStudio.IVsPackageInstallerEvents].
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:7 char:1
Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:10 char:64
Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:21 char:66
With Microsoft Visual Studio Enterprise 2015 Version 14.0.23107.0 D14REL
and Nuget Package manager 3.1.60724.766 Extension (Package Manager Console Host Version 3.1.1.0)
Running "Install-Package Baseclass.Contrib.Nuget.GitIgnoreContent" generates the following error:-
Executing script file 'C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\init.ps1' Unable to find type [NuGet.VisualStudio.IVsPackageInstallerEvents]. At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:7 char:1
Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null. At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:10 char:64
Register-ObjectEvent : Cannot bind argument to parameter 'InputObject' because it is null. At C:\Users\a\project\packages\Baseclass.Contrib.Nuget.GitIgnoreContent.0.0.2\tools\GitIgnoreNugetContentRegisterEvents.ps1:21 char:66
Successfully installed 'Baseclass.Contrib.Nuget.GitIgnoreContent 0.0.2' to project
My first guess is that this is due to a change in Nuget v3 as I have successfully used this package on a VS2013 / Nuget 2.8.6 based project