{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6664","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6664/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6664/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6664/events","html_url":"https://github.com/NuGet/Home/issues/6664","id":304589494,"number":6664,"title":"Emit a warning when a package target cannot be imported","user":{"login":"alpaix","id":8239356,"avatar_url":"https://avatars3.githubusercontent.com/u/8239356?v=4","gravatar_id":"","url":"https://api.github.com/users/alpaix","html_url":"https://github.com/alpaix","followers_url":"https://api.github.com/users/alpaix/followers","following_url":"https://api.github.com/users/alpaix/following{/other_user}","gists_url":"https://api.github.com/users/alpaix/gists{/gist_id}","starred_url":"https://api.github.com/users/alpaix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpaix/subscriptions","organizations_url":"https://api.github.com/users/alpaix/orgs","repos_url":"https://api.github.com/users/alpaix/repos","events_url":"https://api.github.com/users/alpaix/events{/privacy}","received_events_url":"https://api.github.com/users/alpaix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T00:42:15Z","updated_at":"2018-03-13T00:47:03Z","closed_at":null,"author_association":"NONE","body":"### Details about Problem\r\nVS 15.7.0 Preview 1.0\r\nNuGet.exe version: 4.5.1.4879\r\n\r\n### Detailed repro steps so we can see the same problem\r\n\r\n1. Create a package using `nuget.exe pack <packageName>.nuspec` containing an arbitrary `.targets` file.\r\n2. Try to install the package into a .NET Core 2.0 project\r\n3. Inspect the contents of `project.assets.json` file\r\n\r\n### Result\r\n\r\nThe target file from the package is not referenced. \r\n\r\nWhile this behavior is by design it'd be better to emit a warning per included target file if it doesn't match certain criteria. The warning can be generated by pack as well as install command.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/372509233","html_url":"https://github.com/NuGet/Home/issues/6664#issuecomment-372509233","issue_url":"https://api.github.com/repos/NuGet/Home/issues/6664","id":372509233,"user":{"login":"alpaix","id":8239356,"avatar_url":"https://avatars3.githubusercontent.com/u/8239356?v=4","gravatar_id":"","url":"https://api.github.com/users/alpaix","html_url":"https://github.com/alpaix","followers_url":"https://api.github.com/users/alpaix/followers","following_url":"https://api.github.com/users/alpaix/following{/other_user}","gists_url":"https://api.github.com/users/alpaix/gists{/gist_id}","starred_url":"https://api.github.com/users/alpaix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpaix/subscriptions","organizations_url":"https://api.github.com/users/alpaix/orgs","repos_url":"https://api.github.com/users/alpaix/repos","events_url":"https://api.github.com/users/alpaix/events{/privacy}","received_events_url":"https://api.github.com/users/alpaix/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T00:47:03Z","updated_at":"2018-03-13T00:47:03Z","author_association":"NONE","body":"Target file was not referenced until I renamed it after the package name. I presume there's no workaround for that limitation?"}}
{"actor":{"display_login":"alpaix"}}