{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/3145","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/3145/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/3145/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/3145/events","html_url":"https://github.com/NuGet/Home/issues/3145","id":165835174,"number":3145,"title":"NuGet pack ignores dependencies in output nuspec for project.json","user":{"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},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Area:%20Pack","name":"Area: Pack","color":"e11d21"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Area:CommandLine","name":"Area:CommandLine","color":"159818"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Bug","name":"Type:Bug","color":"207de5"}],"state":"closed","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/39","html_url":"https://github.com/NuGet/Home/milestones/3.5%20RTM","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/39/labels","id":1824292,"number":39,"title":"3.5 RTM","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":12,"closed_issues":54,"state":"open","created_at":"2016-06-13T18:47:03Z","updated_at":"2016-07-20T01:08:04Z","due_on":"2016-08-01T07:00:00Z","closed_at":null},"comments":15,"created_at":"2016-07-15T17:10:46Z","updated_at":"2016-07-20T11:35:43Z","closed_at":"2016-07-18T18:02:02Z","body":"This issue is being created out of the two issues filed under : \r\nhttps://github.com/NuGet/Home/issues/3075\r\n\r\nThis is tested against the the latest nightly build on the date of filing of issue. The behavior with 3.5.0-beta2 is very different in the sense that it does output the dependencies (in the output nuspec) but it completely ignores the provided nuspec file.\r\n\r\nRepro steps:\r\n\r\n1) Take a project.json based csproj (like UWP class library). \r\n2) Add a nuspec like the following:\r\n```\r\n<?xml version=\"1.0\"?>\r\n<package xmlns=\"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd\">\r\n  <metadata>\r\n    <id>ProjectA</id>\r\n    <version>1.0.0</version>\r\n    <authors>Rohit Agrawal</authors>\r\n    <requireLicenseAcceptance>false</requireLicenseAcceptance>\r\n    <description>Helps convert packages.config to project.json</description>\r\n  </metadata>\r\n  <files>\r\n    <file src=\"bin\\Debug\\*.dll\" target=\"mylib\" />\r\n  </files>\r\n</package>\r\n```\r\n\r\n3) Add Newtonsoft.json dependency in project.json\r\n4) Run NuGet pack on the csproj.\r\n\r\nOutput nuspec is :\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<package xmlns=\"http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd\">\r\n  <metadata>\r\n    <id>ProjectA</id>\r\n    <version>1.0.0</version>\r\n    <authors>Rohit Agrawal</authors>\r\n    <owners>Rohit Agrawal</owners>\r\n    <requireLicenseAcceptance>false</requireLicenseAcceptance>\r\n    <description>Helps convert packages.config to project.json</description>\r\n    <dependencies />\r\n  </metadata>\r\n</package>\r\n```"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/233924745","html_url":"https://github.com/NuGet/Home/issues/3145#issuecomment-233924745","issue_url":"https://api.github.com/repos/NuGet/Home/issues/3145","id":233924745,"user":{"login":"MistyKuu","id":10333668,"avatar_url":"https://avatars.githubusercontent.com/u/10333668?v=3","gravatar_id":"","url":"https://api.github.com/users/MistyKuu","html_url":"https://github.com/MistyKuu","followers_url":"https://api.github.com/users/MistyKuu/followers","following_url":"https://api.github.com/users/MistyKuu/following{/other_user}","gists_url":"https://api.github.com/users/MistyKuu/gists{/gist_id}","starred_url":"https://api.github.com/users/MistyKuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistyKuu/subscriptions","organizations_url":"https://api.github.com/users/MistyKuu/orgs","repos_url":"https://api.github.com/users/MistyKuu/repos","events_url":"https://api.github.com/users/MistyKuu/events{/privacy}","received_events_url":"https://api.github.com/users/MistyKuu/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T11:35:43Z","updated_at":"2016-07-20T11:35:43Z","body":"@rohit21agrawal the basic functionality doesn't work with packOptions. There are two main issues:\r\n\r\n1. Packing directories\r\n```\r\n\"packOptions\": {\r\n    \"files\": {\r\n      \"mappings\": {\r\n        \"mylib/files\": \"./bin/Debug\"\r\n      }\r\n    }\r\n  }\r\n```\r\n2.  Using wildcards\r\n```\r\n\"packOptions\": {\r\n    \"files\": {\r\n      \"mappings\": {\r\n        \"mylib/files\": \"*.pdb\"\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\nThese are really common scenarios - getting dependencies, adding files etc. With nuspec it worked flawlessly. If you are planning to obsolete nuspec please at least give us basic functionality in project.json.\r\n\r\n"}}
{"actor":{"display_login":"MistyKuu"}}