{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/3113","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/3113/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/3113/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/3113/events","html_url":"https://github.com/aspnet/dnx/issues/3113","id":114612268,"number":3113,"title":"inlcuding package in dependencies part of project.json","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-02T15:06:36Z","updated_at":"2015-11-02T15:34:44Z","closed_at":null,"body":"_From @OlegKi on November 2, 2015 6:22_\n\nI posted [the pull request](https://github.com/aspnet/Mvc/pull/3456) before, but the answers reduced my suggestion to successful building of MVC beta8. Thus I open better new issues with the following question:\r\n\r\n - **Which packages should be included in `\"dependencies\"` part of `project.json`?**\r\n\r\n[The line 308](https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs#L308) of `RoslynCompilationService.cs` of `Microsoft.AspNet.Mvc.Razor.xproj`  **uses directly** enum `PEStreamOptions.PrefetchMetadata` from the namespace `System.Reflection.PortableExecutable`, defined in [System.Reflection.Metadata](https://www.nuget.org/packages/System.Reflection.Metadata/). Thus I correct to **include ** `System.Reflection.Metadata` in `dependencies` part of `project.json`. I suggest to add the following line\r\n```\r\n    \"System.Reflection.Metadata\": \"1.1.0-*\"\r\n```\r\n\r\n**Please explain the common rule of including packages in `dependencies` part of `project.json`.** Should one include all packages referenced *directly* in the code or not?\n\n_Copied from original issue: aspnet/Mvc#3459_"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/153054349","html_url":"https://github.com/aspnet/dnx/issues/3113#issuecomment-153054349","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/3113","id":153054349,"user":{"login":"OlegKi","id":249117,"avatar_url":"https://avatars.githubusercontent.com/u/249117?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegKi","html_url":"https://github.com/OlegKi","followers_url":"https://api.github.com/users/OlegKi/followers","following_url":"https://api.github.com/users/OlegKi/following{/other_user}","gists_url":"https://api.github.com/users/OlegKi/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegKi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegKi/subscriptions","organizations_url":"https://api.github.com/users/OlegKi/orgs","repos_url":"https://api.github.com/users/OlegKi/repos","events_url":"https://api.github.com/users/OlegKi/events{/privacy}","received_events_url":"https://api.github.com/users/OlegKi/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T15:34:44Z","updated_at":"2015-11-02T15:34:44Z","body":"After moving the issue I'm not sure that all required information will be easy found by other users. Thus I repeat the following, which I find inportant result of my analyse:\r\n\r\nLike I wrote in [the comment](https://github.com/aspnet/Mvc/pull/3456#issuecomment-153043975) to the pull request, the building process of many projects faild with the error: \"System.Reflection.Metadata.dll\" will be not found in `dnx\\packages\\System.Reflection.Metadata\\1.1.0-alpha-00014\\lib\\dotnet` folder. The folder `1.1.0-alpha-00014\\lib` really contains only `portable-net45+win8` subdirectory and no `dotnet` folder. After including of *direct* dependency `\"System.Reflection.Metadata\": \"1.1.0-*\"` in all projects, which build failed, one can see that the *new* `1.1.0` version of `System.Reflection.Metadata.dll` be used and the folder `.dnx\\packages\\System.Reflection.Metadata\\1.1.0\\lib` contains now **two** subdirectories: `portable-net45+win8` and `dotnet5.2`. It seems solves the probelm with building MVC projects.\r\n\r\nThus including of direct dipendency seems to produce **another results** in the building process."}}