{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/3832","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/3832/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/3832/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/3832/events","html_url":"https://github.com/NuGet/Home/issues/3832","id":186362507,"number":3832,"title":"IVSPackageInstaller.InstallPackage throws null ref exception","user":{"login":"EricJizbaMSFT","id":11282622,"avatar_url":"https://avatars.githubusercontent.com/u/11282622?v=3","gravatar_id":"","url":"https://api.github.com/users/EricJizbaMSFT","html_url":"https://github.com/EricJizbaMSFT","followers_url":"https://api.github.com/users/EricJizbaMSFT/followers","following_url":"https://api.github.com/users/EricJizbaMSFT/following{/other_user}","gists_url":"https://api.github.com/users/EricJizbaMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/EricJizbaMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricJizbaMSFT/subscriptions","organizations_url":"https://api.github.com/users/EricJizbaMSFT/orgs","repos_url":"https://api.github.com/users/EricJizbaMSFT/repos","events_url":"https://api.github.com/users/EricJizbaMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/EricJizbaMSFT/received_events","type":"User","site_admin":false},"labels":[{"id":171462723,"url":"https://api.github.com/repos/NuGet/Home/labels/Priority:0","name":"Priority:0","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"assignees":[{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/45","html_url":"https://github.com/NuGet/Home/milestones/4.0%20RC","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/45/labels","id":2023251,"number":45,"title":"4.0 RC","description":"","creator":{"login":"rrelyea","id":8865080,"avatar_url":"https://avatars.githubusercontent.com/u/8865080?v=3","gravatar_id":"","url":"https://api.github.com/users/rrelyea","html_url":"https://github.com/rrelyea","followers_url":"https://api.github.com/users/rrelyea/followers","following_url":"https://api.github.com/users/rrelyea/following{/other_user}","gists_url":"https://api.github.com/users/rrelyea/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelyea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelyea/subscriptions","organizations_url":"https://api.github.com/users/rrelyea/orgs","repos_url":"https://api.github.com/users/rrelyea/repos","events_url":"https://api.github.com/users/rrelyea/events{/privacy}","received_events_url":"https://api.github.com/users/rrelyea/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":134,"state":"open","created_at":"2016-09-22T23:53:10Z","updated_at":"2016-10-31T22:27:34Z","due_on":"2016-11-07T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-10-31T18:36:38Z","updated_at":"2016-10-31T22:31:48Z","closed_at":null,"body":"VS version: d15prerel/25830.04\r\n\r\nI created a small sample project that illustrates the issue. It's a VSIX extension project, so you'll need Dev15 with the extensibility tools to run it.\r\n[VSIXProject1.zip](https://github.com/NuGet/Home/files/562548/VSIXProject1.zip)\r\n\r\n### Repro Steps:\r\n1. F5 the sample project (you might have to update the path to \"Nuget.VisualStudio\" reference on your machine in order to build)\r\n2.  File -> New Project -> ASP.NET Core (.NET Framework) -> Empty\r\n3. Tools -> Invoke Command1\r\n\r\nExpected: A Nuget package gets installed to the project\r\nActual: A null ref exception is thrown (line 121 in Command1.cs of the sample project)\r\n\r\n### Verbose Logs\r\n   at NuGet.VisualStudio.VsPackageInstallerServices.<GetInstalledPackageReferencesAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at NuGet.VisualStudio.VsPackageInstallerServices.<>c__DisplayClass14_0.<<IsPackageInstalled>b__0>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()\r\n   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()\r\n   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)\r\n   at NuGet.VisualStudio.VsPackageInstallerServices.IsPackageInstalled(Project project, String packageId, NuGetVersion nugetVersion)\r\n   at NuGet.VisualStudio.VsPackageInstallerServices.IsPackageInstalledEx(Project project, String packageId, String versionString)\r\n   at NuGet.VisualStudio.VsPackageInstaller.<InstallInternalAsync>d__25.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at NuGet.VisualStudio.VsPackageInstaller.<InstallInternalAsync>d__25.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()\r\n   at NuGet.VisualStudio.VsPackageInstaller.InstallPackage(String source, Project project, String packageId, String version, Boolean ignoreDependencies)\r\n   at VSIXProject1.Command1.MenuItemCallback(Object sender, EventArgs e) in C:\\Users\\erijiz\\documents\\visual studio 2017\\Projects\\VSIXProject1\\VSIXProject1\\Command1.cs:line 121\r\n   at System.ComponentModel.Design.MenuCommand.Invoke()\r\n   at System.ComponentModel.Design.MenuCommand.Invoke(Object arg)\r\n   at Microsoft.VisualStudio.Shell.OleMenuCommandService.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& commandGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr pIn, IntPtr vOut)\r\n   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr pIn, IntPtr vOut)\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/257440133","html_url":"https://github.com/NuGet/Home/issues/3832#issuecomment-257440133","issue_url":"https://api.github.com/repos/NuGet/Home/issues/3832","id":257440133,"user":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T22:31:48Z","updated_at":"2016-10-31T22:31:48Z","body":"I am able to get a repro of this."}}
{"actor":{"display_login":"emgarten"}}