{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/95","labels_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/95/comments","events_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/95/events","html_url":"https://github.com/Microsoft/VSProjectSystem/issues/95","id":123741321,"number":95,"title":"Supporting NuGet packages that need to access Microsoft.Build.Evaluation.Project","user":{"login":"dazinator","id":3176632,"avatar_url":"https://avatars.githubusercontent.com/u/3176632?v=3","gravatar_id":"","url":"https://api.github.com/users/dazinator","html_url":"https://github.com/dazinator","followers_url":"https://api.github.com/users/dazinator/followers","following_url":"https://api.github.com/users/dazinator/following{/other_user}","gists_url":"https://api.github.com/users/dazinator/gists{/gist_id}","starred_url":"https://api.github.com/users/dazinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dazinator/subscriptions","organizations_url":"https://api.github.com/users/dazinator/orgs","repos_url":"https://api.github.com/users/dazinator/repos","events_url":"https://api.github.com/users/dazinator/events{/privacy}","received_events_url":"https://api.github.com/users/dazinator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-12-24T00:51:17Z","updated_at":"2015-12-28T23:10:02Z","closed_at":"2015-12-28T23:10:02Z","body":"I have noticed that when I create a new project based on my project type, if I then look at the `GlobalProjectCollection` object, by going to the package manager console and doing:\r\n\r\n```\r\n> Add-Type -AssemblyName 'Microsoft.Build, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'\r\n> $msBuildProjects = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection\r\n> $msBuildProjects\r\n```\r\n\r\nIt shows that the `GlobalProjectCollection` object does not contain my project.\r\n\r\nIf I add a new C# library project to the same solution however, then this project gets added to the `GlobalProjectCollection`.\r\n\r\nThis is causing issues because I have a NuGet package that upon installation, runs powershell to grab the `Microsoft.Build.Evaluation.Project` from the `GlobalProjectCollection` so that it can import some additional targets - it doesn't find my project.\r\n\r\nAny ideas on how I can fix this situation? I assumed VS added all project types to this collection automatically!"}}