{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/4166","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/4166/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/4166/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/4166/events","html_url":"https://github.com/NuGet/Home/issues/4166","id":198101477,"number":4166,"title":"Pack target can't create contentFiles with build actions correctly","user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"labels":[{"id":330852328,"url":"https://api.github.com/repos/NuGet/Home/labels/Area:%20Pack","name":"Area: Pack","color":"e11d21","default":false},{"id":270095664,"url":"https://api.github.com/repos/NuGet/Home/labels/Investigate","name":"Investigate","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"rohit21agrawal","id":1857490,"avatar_url":"https://avatars.githubusercontent.com/u/1857490?v=3","gravatar_id":"","url":"https://api.github.com/users/rohit21agrawal","html_url":"https://github.com/rohit21agrawal","followers_url":"https://api.github.com/users/rohit21agrawal/followers","following_url":"https://api.github.com/users/rohit21agrawal/following{/other_user}","gists_url":"https://api.github.com/users/rohit21agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/rohit21agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohit21agrawal/subscriptions","organizations_url":"https://api.github.com/users/rohit21agrawal/orgs","repos_url":"https://api.github.com/users/rohit21agrawal/repos","events_url":"https://api.github.com/users/rohit21agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/rohit21agrawal/received_events","type":"User","site_admin":false},"assignees":[{"login":"rohit21agrawal","id":1857490,"avatar_url":"https://avatars.githubusercontent.com/u/1857490?v=3","gravatar_id":"","url":"https://api.github.com/users/rohit21agrawal","html_url":"https://github.com/rohit21agrawal","followers_url":"https://api.github.com/users/rohit21agrawal/followers","following_url":"https://api.github.com/users/rohit21agrawal/following{/other_user}","gists_url":"https://api.github.com/users/rohit21agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/rohit21agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohit21agrawal/subscriptions","organizations_url":"https://api.github.com/users/rohit21agrawal/orgs","repos_url":"https://api.github.com/users/rohit21agrawal/repos","events_url":"https://api.github.com/users/rohit21agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/rohit21agrawal/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/49","html_url":"https://github.com/NuGet/Home/milestone/49","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/49/labels","id":2226795,"number":49,"title":"4.0.1","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":4,"closed_issues":0,"state":"open","created_at":"2017-01-03T22:26:29Z","updated_at":"2017-01-05T22:33:39Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-12-30T03:53:22Z","updated_at":"2017-01-05T22:34:02Z","closed_at":null,"body":"When reviewing the spec for the Pack target\r\nhttps://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target\r\n\r\nIn the section where it talks about contentFiles, it says\"\r\n\r\n> Apart from Content items, the `<Pack>` and `<PackagePath>` metadata can also be set on files with Build Action = Compile, EmbeddedResource, ApplicationDefinition, Page, Resource, SplashScreen, DesignData, DesignDataWithDesignTimeCreatableTypes, CodeAnalysisDictionary, AndroidAsset, AndroidResource, BundleResource or None.\r\n\r\nI'm not sure how that's going to work correctly. The content that I want to pack is not going to be of that type in the library itself. For example, in my xUnit for Devices library, I have an App.Xaml.pp that is \"Content\" in my library, but the buildAction needs to be ApplicationDefinition. It cannot be \"ApplicationDefinition\" with metadata in the library itself.\r\n\r\nWhat it needs is Content or None with a metadata BuildAction where I can specify what it should be in the nuget.\r\n\r\nBut that's not enough either. It also needs to provide arbitrary key/value metadata that will go on the generated item. For example I need a \"Generator\" metadata with the value of MSBuild:Compile to go on the XAML ones.\r\n\r\nXAML Forms requires other similar things too. Rather than hard-code every combination of metadata that gets attached to the generated item, something more generic that encodes a key/value pair would be better.\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/270777543","html_url":"https://github.com/NuGet/Home/issues/4166#issuecomment-270777543","issue_url":"https://api.github.com/repos/NuGet/Home/issues/4166","id":270777543,"user":{"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},"created_at":"2017-01-05T22:34:02Z","updated_at":"2017-01-05T22:34:02Z","body":"This sounds like a good capability to add. Let's consider right after 4.0."}}
{"actor":{"display_login":"rrelyea"}}