{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/120","labels_url":"https://api.github.com/repos/aspnet/Tooling/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Tooling/issues/120/comments","events_url":"https://api.github.com/repos/aspnet/Tooling/issues/120/events","html_url":"https://github.com/aspnet/Tooling/issues/120","id":97736975,"number":120,"title":"dnu publish fails with nested dependencies","user":{"login":"glatzert","id":10154376,"avatar_url":"https://avatars.githubusercontent.com/u/10154376?v=3","gravatar_id":"","url":"https://api.github.com/users/glatzert","html_url":"https://github.com/glatzert","followers_url":"https://api.github.com/users/glatzert/followers","following_url":"https://api.github.com/users/glatzert/following{/other_user}","gists_url":"https://api.github.com/users/glatzert/gists{/gist_id}","starred_url":"https://api.github.com/users/glatzert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glatzert/subscriptions","organizations_url":"https://api.github.com/users/glatzert/orgs","repos_url":"https://api.github.com/users/glatzert/repos","events_url":"https://api.github.com/users/glatzert/events{/privacy}","received_events_url":"https://api.github.com/users/glatzert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T15:35:24Z","updated_at":"2015-07-30T03:03:07Z","closed_at":null,"body":"I tried to publish an Asp.Net project to the file system and got an error in that it cannot find a referenced assembly. But \"building\" the project works fine.\r\n\r\n#### The Project layout (minimal for presentation purposes)\r\n\r\n1. New ASP.NET 5 WebAPI Project (WebApplication1)\r\n2. New Class Library (legacy) (ClassLibrary1)\r\n3. Add some package via nuget package manager (I used AutoMapper here, but other packages will have similar problems)\r\n4. Add a reference from WebApplication1 to ClassLibrary1\r\n5. wrap folder was created and ClassLibrary1/project.json exists now - Automapper is listed as dependency\r\n\r\nNow build the project or run it in IIS - it will work fine.\r\nThen I added a publish profile for local file-system (just default settings)\r\nHitting the publish button now will throw an Error: \r\n> The dependency AutoMapper >= 3.3.1 could not be resolved.\r\n\r\n--\r\nNow I thought I would be _clever_:\r\nI created a folder \"wrap/AutoMapper\" and a project.json file with the information, so it'll look like the other project.json file, which VS created. And _whooohoo_ my ErrorList was empty and the publish.. did not throw any error, but told me the publish **failed**.\r\n\r\nI copied the dnu command line from the vs output and ran it inside a cmd.exe - with the following result (took this from another project, where I first saw the error):\r\n> Restoring packages for C:\\Users\\\\...AppData...\\\\EntityFramework.CodeFirstStoreFunctions\\1.0.0\\root\\project.json\r\n> \r\n> System.ArgumentNullException: Der Wert darf nicht NULL sein. [The value may not be NULL]\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/comments/126167968","html_url":"https://github.com/aspnet/Tooling/issues/120#issuecomment-126167968","issue_url":"https://api.github.com/repos/aspnet/Tooling/issues/120","id":126167968,"user":{"login":"sayedihashimi","id":1283154,"avatar_url":"https://avatars.githubusercontent.com/u/1283154?v=3","gravatar_id":"","url":"https://api.github.com/users/sayedihashimi","html_url":"https://github.com/sayedihashimi","followers_url":"https://api.github.com/users/sayedihashimi/followers","following_url":"https://api.github.com/users/sayedihashimi/following{/other_user}","gists_url":"https://api.github.com/users/sayedihashimi/gists{/gist_id}","starred_url":"https://api.github.com/users/sayedihashimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayedihashimi/subscriptions","organizations_url":"https://api.github.com/users/sayedihashimi/orgs","repos_url":"https://api.github.com/users/sayedihashimi/repos","events_url":"https://api.github.com/users/sayedihashimi/events{/privacy}","received_events_url":"https://api.github.com/users/sayedihashimi/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T03:03:07Z","updated_at":"2015-07-30T03:03:07Z","body":"@glatzert could you share a sample solution?"}}