{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/standard/issues/667","repository_url":"https://api.github.com/repos/dotnet/standard","labels_url":"https://api.github.com/repos/dotnet/standard/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/standard/issues/667/comments","events_url":"https://api.github.com/repos/dotnet/standard/issues/667/events","html_url":"https://github.com/dotnet/standard/issues/667","id":302802314,"number":667,"title":"Root package was specified but was not found in PackageDependencies","user":{"login":"jnm2","id":8040367,"avatar_url":"https://avatars2.githubusercontent.com/u/8040367?v=4","gravatar_id":"","url":"https://api.github.com/users/jnm2","html_url":"https://github.com/jnm2","followers_url":"https://api.github.com/users/jnm2/followers","following_url":"https://api.github.com/users/jnm2/following{/other_user}","gists_url":"https://api.github.com/users/jnm2/gists{/gist_id}","starred_url":"https://api.github.com/users/jnm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnm2/subscriptions","organizations_url":"https://api.github.com/users/jnm2/orgs","repos_url":"https://api.github.com/users/jnm2/repos","events_url":"https://api.github.com/users/jnm2/events{/privacy}","received_events_url":"https://api.github.com/users/jnm2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-06T17:51:27Z","updated_at":"2018-03-06T18:24:05Z","closed_at":null,"author_association":"NONE","body":"The csproj has:\r\n\r\n```xml\r\n  <PropertyGroup>\r\n    <TrimUnusedDependencies>true</TrimUnusedDependencies>\r\n  </PropertyGroup>\r\n\r\n  <ItemGroup>\r\n    <PackageReference Include=\"SourceLink.Embed.AllSourceFiles\" Version=\"2.7.4\" PrivateAssets=\"all\" />\r\n    <PackageReference Include=\"Microsoft.Packaging.Tools.Trimming\" Version=\"1.1.0-preview1-25818-01\" />\r\n  </ItemGroup>\r\n```\r\n\r\nIt fails to build, giving:\r\n\r\n> Microsoft.Packaging.Tools.Trimming.targets(55,5): error MSB4018: The \"TrimFiles\" task failed unexpectedly.\r\n> System.Exception: Root package SourceLink.Embed.AllSourceFiles was specified but was not found in PackageDependencies\r\n>    at Microsoft.DotNet.Build.Tasks.TrimFiles.GetPackageRoots(IDictionary`2 packages, Trimmable trimmable)\r\n>    at Microsoft.DotNet.Build.Tasks.TrimFiles.Execute()\r\n>    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n>    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()\r\n\r\nIs this expected to work?"},"comment":{"url":"https://api.github.com/repos/dotnet/standard/issues/comments/370878830","html_url":"https://github.com/dotnet/standard/issues/667#issuecomment-370878830","issue_url":"https://api.github.com/repos/dotnet/standard/issues/667","id":370878830,"user":{"login":"jnm2","id":8040367,"avatar_url":"https://avatars2.githubusercontent.com/u/8040367?v=4","gravatar_id":"","url":"https://api.github.com/users/jnm2","html_url":"https://github.com/jnm2","followers_url":"https://api.github.com/users/jnm2/followers","following_url":"https://api.github.com/users/jnm2/following{/other_user}","gists_url":"https://api.github.com/users/jnm2/gists{/gist_id}","starred_url":"https://api.github.com/users/jnm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnm2/subscriptions","organizations_url":"https://api.github.com/users/jnm2/orgs","repos_url":"https://api.github.com/users/jnm2/repos","events_url":"https://api.github.com/users/jnm2/events{/privacy}","received_events_url":"https://api.github.com/users/jnm2/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T18:24:05Z","updated_at":"2018-03-06T18:24:05Z","author_association":"NONE","body":"Would repro projects help?"}}
{"actor":{"display_login":"jnm2"}}