{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/37","repository_url":"https://api.github.com/repos/nunit/dotnet-test-nunit","labels_url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/37/comments","events_url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/37/events","html_url":"https://github.com/nunit/dotnet-test-nunit/issues/37","id":161844225,"number":37,"title":"Multiple frameworks doesn't work with VS test explorer","user":{"login":"h0useRus","id":3861787,"avatar_url":"https://avatars.githubusercontent.com/u/3861787?v=3","gravatar_id":"","url":"https://api.github.com/users/h0useRus","html_url":"https://github.com/h0useRus","followers_url":"https://api.github.com/users/h0useRus/followers","following_url":"https://api.github.com/users/h0useRus/following{/other_user}","gists_url":"https://api.github.com/users/h0useRus/gists{/gist_id}","starred_url":"https://api.github.com/users/h0useRus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0useRus/subscriptions","organizations_url":"https://api.github.com/users/h0useRus/orgs","repos_url":"https://api.github.com/users/h0useRus/repos","events_url":"https://api.github.com/users/h0useRus/events{/privacy}","received_events_url":"https://api.github.com/users/h0useRus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/dotnet-test-nunit/labels/is:bug","name":"is:bug","color":"ee0701"},{"url":"https://api.github.com/repos/nunit/dotnet-test-nunit/labels/status:blocked","name":"status:blocked","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-06-23T05:42:19Z","updated_at":"2016-07-24T01:16:29Z","closed_at":null,"body":"Hi, latest version working fine with one framework with Test Explorer and _dotnet test_, but if you select more than one framework in project.json working only _dotnet test_, but not in Test Explorer, all tests disappear.\r\nMy project.json:\r\n```json\r\n{\r\n    \"version\": \"1.2.3.4\",\r\n    \"dependencies\": {\r\n        \"MyLib\": {\r\n            \"target\": \"project\"\r\n        },\r\n        \"NUnit\": \"3.2.1\",\r\n        \"dotnet-test-nunit\": \"3.4.0-alpha-2\"\r\n    },\r\n    \"testRunner\": \"nunit\",\r\n    \"frameworks\": {\r\n        \"net451\": { },       \r\n        \"netcoreapp1.0\": {\r\n            \"imports\": [\r\n                \"dnxcore50\",\r\n                \"netcoreapp1.0\",\r\n                \"portable-net45+win8\"\r\n            ],\r\n            \"dependencies\": {\r\n                \"Microsoft.NETCore.App\": {\r\n                    \"version\": \"1.0.0-*\",\r\n                    \"type\": \"platform\"\r\n                }\r\n            },\r\n            \"buildOptions\": {\r\n                \"define\": [ \"NETCORE\" ]\r\n            }\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/comments/234750678","html_url":"https://github.com/nunit/dotnet-test-nunit/issues/37#issuecomment-234750678","issue_url":"https://api.github.com/repos/nunit/dotnet-test-nunit/issues/37","id":234750678,"user":{"login":"jasonwilliams200OK","id":2031765,"avatar_url":"https://avatars.githubusercontent.com/u/2031765?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwilliams200OK","html_url":"https://github.com/jasonwilliams200OK","followers_url":"https://api.github.com/users/jasonwilliams200OK/followers","following_url":"https://api.github.com/users/jasonwilliams200OK/following{/other_user}","gists_url":"https://api.github.com/users/jasonwilliams200OK/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwilliams200OK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwilliams200OK/subscriptions","organizations_url":"https://api.github.com/users/jasonwilliams200OK/orgs","repos_url":"https://api.github.com/users/jasonwilliams200OK/repos","events_url":"https://api.github.com/users/jasonwilliams200OK/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwilliams200OK/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T01:16:29Z","updated_at":"2016-07-24T01:16:29Z","body":"@jcansdale, no problem, this is mostly undocumented. I actually went through couple of related issues in dotnet/cli and xunit repos to understand why `dotnet test` fails, in preparation for #54. Here is the most relevant bit https://github.com/dotnet/cli/issues/3016#issuecomment-225976094 which points to this blog for explaining the purpose of `Microsoft.NETCore.Platform`: http://www.natemcmaster.com/blog/2016/05/19/nuget3-rid-graph/.\r\n\r\nThe choice is to either include `Microsoft.NETCore.Platform` as dependency or add `\"runtimes\"` section with explicit list of RIDs, which is explained in this doc: https://docs.nuget.org/consume/projectjson-format (under Runtimes heading; no internal link on their site..).\r\n\r\nThe third option is to have a `runtime.json` file side-by-side our project.json to merely extract out the runtimes section in a separate file.\r\n\r\nSince our library has no native-dependency and we want to support widest-possible audience, we want all permutations of platforms x RIDs to be included. To do that, the easiest way is to include `Microsoft.NETCore.Platform` (which just has a \"runtime.json\" file listing all the permutations for each supported OS, as we can find in this package's source: https://github.com/dotnet/corefx/blob/master/pkg/Microsoft.NETCore.Platforms/runtime.json)."}}
{"actor":{"display_login":"jasonwilliams200OK"}}