{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1936","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1936/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1936/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1936/events","html_url":"https://github.com/NuGet/Home/issues/1936","id":126784773,"number":1936,"title":"Fail to add xunit.runner.msbuild nuget package if project.json is used","user":{"login":"jmelosegui","id":450246,"avatar_url":"https://avatars.githubusercontent.com/u/450246?v=3","gravatar_id":"","url":"https://api.github.com/users/jmelosegui","html_url":"https://github.com/jmelosegui","followers_url":"https://api.github.com/users/jmelosegui/followers","following_url":"https://api.github.com/users/jmelosegui/following{/other_user}","gists_url":"https://api.github.com/users/jmelosegui/gists{/gist_id}","starred_url":"https://api.github.com/users/jmelosegui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmelosegui/subscriptions","organizations_url":"https://api.github.com/users/jmelosegui/orgs","repos_url":"https://api.github.com/users/jmelosegui/repos","events_url":"https://api.github.com/users/jmelosegui/events{/privacy}","received_events_url":"https://api.github.com/users/jmelosegui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-15T01:06:32Z","updated_at":"2016-02-24T21:57:19Z","closed_at":null,"body":"Having the following solution\r\n\r\n![image](https://cloud.githubusercontent.com/assets/450246/12333093/32314824-bac0-11e5-8a15-e819bab66a2f.png)\r\n\r\nand the following project.json configuration:\r\n\r\n```json\r\n{\r\n  \"supports\": { },\r\n  \"dependencies\": {\r\n    \"xunit.runner.msbuild\": \"2.1.0\"\r\n  },\r\n  \"frameworks\": {\r\n    \".NETFramework,Version=v4.6.1\": { }\r\n  },\r\n  \"runtimes\": {\r\n    \"win\": { } \r\n  }\r\n}\r\n```\r\n\r\nWhen restoring nuget packages I get this error:\r\n```\r\nxunit.runner.msbuild 2.1.0 is not compatible with .NETFramework,Version=v4.6.1.\r\n```\r\nAs soon as I replace the `project.json` file by `packages.config` with the following configuration\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<packages>\r\n  <package id=\"xunit.runner.msbuild\" version=\"2.1.0\" targetFramework=\"net461\" />\r\n</packages>\r\n```\r\nRestoring nuget packages runs without any problem.\r\n\r\n**Visual Studio version 14.0.24720.00 Update 1**"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/188470271","html_url":"https://github.com/NuGet/Home/issues/1936#issuecomment-188470271","issue_url":"https://api.github.com/repos/NuGet/Home/issues/1936","id":188470271,"user":{"login":"bradwilson","id":16944,"avatar_url":"https://avatars.githubusercontent.com/u/16944?v=3","gravatar_id":"","url":"https://api.github.com/users/bradwilson","html_url":"https://github.com/bradwilson","followers_url":"https://api.github.com/users/bradwilson/followers","following_url":"https://api.github.com/users/bradwilson/following{/other_user}","gists_url":"https://api.github.com/users/bradwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/bradwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradwilson/subscriptions","organizations_url":"https://api.github.com/users/bradwilson/orgs","repos_url":"https://api.github.com/users/bradwilson/repos","events_url":"https://api.github.com/users/bradwilson/events{/privacy}","received_events_url":"https://api.github.com/users/bradwilson/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T21:57:19Z","updated_at":"2016-02-24T21:57:19Z","body":"> XUnit 2.1.0 contains a file lib\\portable-net45%2Bwin8%2Bwp8%2Bwpa81\\_ instead of the expected lib\\portable-net45%2Bwin8%2Bwp8%2Bwpa81\\_._\r\n\r\nFWIW, this \"expectation\" is a new requirement, as the single underscore file works just fine with `packages.config` based projects."}}