{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/1043","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/1043/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/1043/events","html_url":"https://github.com/dotnet/cli/issues/1043","id":128905942,"number":1043,"title":"Use reference library without corresponding runtime implementation","user":{"login":"andschwa","id":2226434,"avatar_url":"https://avatars.githubusercontent.com/u/2226434?v=3","gravatar_id":"","url":"https://api.github.com/users/andschwa","html_url":"https://github.com/andschwa","followers_url":"https://api.github.com/users/andschwa/followers","following_url":"https://api.github.com/users/andschwa/following{/other_user}","gists_url":"https://api.github.com/users/andschwa/gists{/gist_id}","starred_url":"https://api.github.com/users/andschwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andschwa/subscriptions","organizations_url":"https://api.github.com/users/andschwa/orgs","repos_url":"https://api.github.com/users/andschwa/repos","events_url":"https://api.github.com/users/andschwa/events{/privacy}","received_events_url":"https://api.github.com/users/andschwa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/cli/labels/blocking-partner","name":"blocking-partner","color":"e11d21"},{"url":"https://api.github.com/repos/dotnet/cli/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ericstj","id":8918108,"avatar_url":"https://avatars.githubusercontent.com/u/8918108?v=3","gravatar_id":"","url":"https://api.github.com/users/ericstj","html_url":"https://github.com/ericstj","followers_url":"https://api.github.com/users/ericstj/followers","following_url":"https://api.github.com/users/ericstj/following{/other_user}","gists_url":"https://api.github.com/users/ericstj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericstj/subscriptions","organizations_url":"https://api.github.com/users/ericstj/orgs","repos_url":"https://api.github.com/users/ericstj/repos","events_url":"https://api.github.com/users/ericstj/events{/privacy}","received_events_url":"https://api.github.com/users/ericstj/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/3","html_url":"https://github.com/dotnet/cli/milestones/RC2-Feb","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/3/labels","id":1343748,"number":3,"title":"RC2-Feb","description":"","creator":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"open_issues":102,"closed_issues":83,"state":"open","created_at":"2015-10-08T01:23:25Z","updated_at":"2016-02-10T19:40:16Z","due_on":"2016-02-19T08:00:00Z","closed_at":null},"comments":14,"created_at":"2016-01-26T18:42:08Z","updated_at":"2016-02-11T18:34:36Z","closed_at":null,"body":"For an internal Microsoft project, we're building a legacy codebase across both Windows and Linux (and OS X) using `dotnet-cli`. Unfortunately, with the changes to `dotnet-cli` to use NuGet instead of DNX, we're crashing into some \"guardrails\" so to speak.\r\n\r\nTo this point, to port the codebase, we've added runtime guards around code that can't (and will never) work on Linux, but we still require the types (via reference assemblies) in order to compile. CLI using NuGet has added compatibility checks that DNX previously didn't care about, which is now preventing us from restoring necessary packages.\r\n\r\nFor now, we can lock to .NET packages at 1.0.0-rc2-23712, which appear to not have those checks enforced. Unfortunately, this is less than ideal because we a) would really like to to pull in new packages to test fixes for some issues, and b) the more behind we get, the harder it gets to upgrade.\r\n\r\nSo our project has taken a dependency on a feature that was quite officially supported; that is, the ability to use a reference assembly and intentionally not caring about its lack of implementation (on particular platforms).\r\n\r\n@anurse has suggested a `--no-guardrails` option to give us this feature in new versions of `dotnet-cli` with new versions of the .NET packages.\r\n\r\n/cc @ericstj @vors @FawcettJohnW"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/183000545","html_url":"https://github.com/dotnet/cli/issues/1043#issuecomment-183000545","issue_url":"https://api.github.com/repos/dotnet/cli/issues/1043","id":183000545,"user":{"login":"anurse","id":7574,"avatar_url":"https://avatars.githubusercontent.com/u/7574?v=3","gravatar_id":"","url":"https://api.github.com/users/anurse","html_url":"https://github.com/anurse","followers_url":"https://api.github.com/users/anurse/followers","following_url":"https://api.github.com/users/anurse/following{/other_user}","gists_url":"https://api.github.com/users/anurse/gists{/gist_id}","starred_url":"https://api.github.com/users/anurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurse/subscriptions","organizations_url":"https://api.github.com/users/anurse/orgs","repos_url":"https://api.github.com/users/anurse/repos","events_url":"https://api.github.com/users/anurse/events{/privacy}","received_events_url":"https://api.github.com/users/anurse/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T18:34:36Z","updated_at":"2016-02-11T18:34:36Z","body":"Some packages (particularly the ones I see in your list) also use the old `dotnet` name :). It's a bit of whack-a-mole, but the following might just work:\r\n\r\n```json\r\n    \"frameworks\": {\r\n        \"netstandard1.5\": {\r\n            \"imports\": [ \"dotnet5.6\", \"dnxcore50\", \"portable-net45+win8\" ]\r\n        }\r\n    },\r\n```\r\n\r\n(support for multiple items in `imports` and non-portable profiles in `imports` is only in some of the most recent NuGet builds, it may not be there in the latest dotnet-cli builds)"}}