{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/10481","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/10481/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/10481/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/10481/events","html_url":"https://github.com/dotnet/roslyn/issues/10481","id":147575394,"number":10481,"title":"Project reference fails from csproj to xproj (with .NetStandard  target reference) ","user":{"login":"jinujoseph","id":12449387,"avatar_url":"https://avatars.githubusercontent.com/u/12449387?v=3","gravatar_id":"","url":"https://api.github.com/users/jinujoseph","html_url":"https://github.com/jinujoseph","followers_url":"https://api.github.com/users/jinujoseph/followers","following_url":"https://api.github.com/users/jinujoseph/following{/other_user}","gists_url":"https://api.github.com/users/jinujoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/jinujoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinujoseph/subscriptions","organizations_url":"https://api.github.com/users/jinujoseph/orgs","repos_url":"https://api.github.com/users/jinujoseph/repos","events_url":"https://api.github.com/users/jinujoseph/events{/privacy}","received_events_url":"https://api.github.com/users/jinujoseph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"jasonmalinowski","id":201340,"avatar_url":"https://avatars.githubusercontent.com/u/201340?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmalinowski","html_url":"https://github.com/jasonmalinowski","followers_url":"https://api.github.com/users/jasonmalinowski/followers","following_url":"https://api.github.com/users/jasonmalinowski/following{/other_user}","gists_url":"https://api.github.com/users/jasonmalinowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmalinowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmalinowski/subscriptions","organizations_url":"https://api.github.com/users/jasonmalinowski/orgs","repos_url":"https://api.github.com/users/jasonmalinowski/repos","events_url":"https://api.github.com/users/jasonmalinowski/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmalinowski/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-11T22:38:45Z","updated_at":"2016-04-12T00:06:02Z","closed_at":"2016-04-12T00:06:02Z","body":"Repro steps \r\n- Create a .Net Core Class Library (xProj)\r\n- By default it points to\r\n \"frameworks\": {\r\n    \"netstandard1.5\": {}\r\n  }\r\n\r\n- Now create .Net Console Aplication (csProj) \r\n- point the .netframework to 4.6.2 \r\n- Add project.json file to the same and add \r\n{\r\n  \"frameworks\": {\r\n    \"net462\": { }\r\n  },\r\n  \"runtimes\": {\r\n    \"win\": { }\r\n  }\r\n}\r\n\r\n- Build both projects and make sure it builds fine.\r\n- Now refer the class library project from console app.\r\n\r\nExpected \r\nReference works and Builds successfully \r\n\r\nActual \r\nReference maps but build fails with this error \r\n2>C:\\Program Files (x86)\\MSBuild\\Microsoft\\NuGet\\Microsoft.NuGet.targets(140,5): error : Object reference not set to an instance of an object.\r\n2>C:\\Program Files (x86)\\MSBuild\\Microsoft\\NuGet\\Microsoft.NuGet.targets(140,5): error :    at Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets.<GetPackagesFromTarget>d__104.MoveNext()\r\n2>C:\\Program Files (x86)\\MSBuild\\Microsoft\\NuGet\\Microsoft.NuGet.targets(140,5): error :    at Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets.GetReferences(JObject lockFile)\r\n2>C:\\Program Files (x86)\\MSBuild\\Microsoft\\NuGet\\Microsoft.NuGet.targets(140,5): error :    at Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets.ExecuteCore()\r\n2>C:\\Program Files (x86)\\MSBuild\\Microsoft\\NuGet\\Microsoft.NuGet.targets(140,5): error :    at Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets.Execute()\r\n\r\n\r\nNote\r\nIf you do a binary reference to the class library the build succeeded but at run time threw this error \r\n![unhandledexception](https://cloud.githubusercontent.com/assets/12449387/14444520/e8f160a6-fffa-11e5-9ce4-a95c92d6d74b.jpg)\r\n\r\n"}}