{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3456","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3456/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3456/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3456/events","html_url":"https://github.com/aspnet/Mvc/pull/3456","id":114438184,"number":3456,"title":"Fix missing dependency to System.Reflection.Metadata","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},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/cla-not-required","name":"cla-not-required","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-31T22:29:32Z","updated_at":"2015-11-01T17:55:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/3456","html_url":"https://github.com/aspnet/Mvc/pull/3456","diff_url":"https://github.com/aspnet/Mvc/pull/3456.diff","patch_url":"https://github.com/aspnet/Mvc/pull/3456.patch"},"body":"The file `RoslynCompilationService.cs` of `Microsoft.AspNet.Mvc.Razor` contains the reference `using System.Reflection.PortableExecutable;` in [the line](https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs#L11) of code. As the result `Microsoft.AspNet.Mvc.Razor` have dependence to [System.Reflection.Metadata](https://www.nuget.org/packages/System.Reflection.Metadata) NuGet package. One can examine `project.lock.json` to verify that `System.Reflection.Metadata` in version `1.1.0-alpha-00014` or higher (starting with Oktober 27 2015 is released 1.1.0 final) is required."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/152848809","html_url":"https://github.com/aspnet/Mvc/pull/3456#issuecomment-152848809","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/3456","id":152848809,"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-01T17:55:41Z","updated_at":"2015-11-01T17:55:41Z","body":"Sorry, but I included not full correct information in my previous comment. Installing of the latest NuGet 3.2.1 extension for Visual Studio 2015 don't solves the described problem. So I know only two alternative ways to fix the problem:\r\n 1.  including \"System.Reflection.Metadata\": \"1.1.0-*\" or \"System.Reflection.Metadata\": \"1.1.0\" or \"System.Reflection.Metadata\": \"1.1.0-alpha-00014\" in `dependencies` part of `project.json` of `Microsoft.AspNet.Mvc.Razor.xproj`\r\n 2. enabling `https://www.nuget.org/api/v2/` as the package source additionally to `https://api.nuget.org/v3/index.json` and `https://www.myget.org/f/aspnetmaster/api/v3/index.json` in configuration of NuGet Package Manager\r\n\r\nBecause the private `CreateMetadataFileReference` method of `src\\Microsoft.AspNet.Mvc.Razor\\Compilation\\RoslynCompilationService.cs` **uses directly** `PEStreamOptions.PrefetchMetadata` from `System.Reflection.PortableExecutable` namespace, defined in `System.Reflection.Metadata` I still find including of `\"System.Reflection.Metadata\"` in `dependencies` part of `project.json` of `Microsoft.AspNet.Mvc.Razor.xproj` as the most correct way."}}